BIM: Only dusplay context menu items when in BIM WB - fixes #17043

This commit is contained in:
Yorik van Havre
2024-10-15 11:23:34 +02:00
committed by Chris Hennes
parent 40616bb119
commit f4d213d299
16 changed files with 53 additions and 1 deletions

View File

@@ -817,6 +817,10 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent):
return True
def setupContextMenu(self, vobj, menu):
if FreeCADGui.activeWorkbench().name() != 'BIMWorkbench':
return
hingeIdxs = self.getHingeEdgeIndices()
super().contextMenuAddEdit(menu)