mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Actually fix #2553 : Add safeguard to unregister custom right click context menu
This commit is contained in:
@@ -181,7 +181,8 @@ def unregister():
|
|||||||
del bpy.types.Camera.BIMMeshProperties
|
del bpy.types.Camera.BIMMeshProperties
|
||||||
del bpy.types.PointLight.BIMMeshProperties
|
del bpy.types.PointLight.BIMMeshProperties
|
||||||
bpy.types.SCENE_PT_unit.remove(ui.ifc_units)
|
bpy.types.SCENE_PT_unit.remove(ui.ifc_units)
|
||||||
bpy.types.UI_MT_button_context_menu.remove(ui.draw_custom_context_menu)
|
if hasattr(bpy.types, "UI_MT_button_context_menu"):
|
||||||
|
bpy.types.UI_MT_button_context_menu.remove(ui.draw_custom_context_menu)
|
||||||
|
|
||||||
for mod in reversed(list(modules.values())):
|
for mod in reversed(list(modules.values())):
|
||||||
mod.unregister()
|
mod.unregister()
|
||||||
|
|||||||
Reference in New Issue
Block a user