BIM: Only dusplay context menu items when in BIM WB - fixes #17043
This commit is contained in:
committed by
Chris Hennes
parent
40616bb119
commit
f4d213d299
@@ -803,7 +803,8 @@ class ViewProviderBuildingPart:
|
||||
def setupContextMenu(self, vobj, menu):
|
||||
from PySide import QtCore, QtGui
|
||||
import Draft_rc
|
||||
|
||||
if FreeCADGui.activeWorkbench().name() != 'BIMWorkbench':
|
||||
return
|
||||
if (not hasattr(vobj,"DoubleClickActivates")) or vobj.DoubleClickActivates:
|
||||
if FreeCADGui.ActiveDocument.ActiveView.getActiveObject("Arch") == self.Object:
|
||||
menuTxt = translate("Arch", "Deactivate")
|
||||
|
||||
Reference in New Issue
Block a user