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
@@ -1327,6 +1327,10 @@ class _ViewProviderWall(ArchComponent.ViewProviderComponent):
|
||||
return ArchComponent.ViewProviderComponent.setDisplayMode(self,mode)
|
||||
|
||||
def setupContextMenu(self, vobj, menu):
|
||||
|
||||
if FreeCADGui.activeWorkbench().name() != 'BIMWorkbench':
|
||||
return
|
||||
|
||||
super().contextMenuAddEdit(menu)
|
||||
|
||||
actionFlipDirection = QtGui.QAction(QtGui.QIcon(":/icons/Arch_Wall_Tree.svg"),
|
||||
|
||||
Reference in New Issue
Block a user