mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
unregistering spatial and structural tools on disabling addon
This commit is contained in:
@@ -60,6 +60,7 @@ def register():
|
|||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
|
bpy.utils.unregister_tool(workspace.SpatialTool)
|
||||||
del bpy.types.Scene.BIMSpatialProperties
|
del bpy.types.Scene.BIMSpatialProperties
|
||||||
del bpy.types.Object.BIMObjectSpatialProperties
|
del bpy.types.Object.BIMObjectSpatialProperties
|
||||||
del bpy.types.Scene.BIMSpatialManagerProperties
|
del bpy.types.Scene.BIMSpatialManagerProperties
|
||||||
|
|||||||
@@ -100,5 +100,6 @@ def register():
|
|||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
|
bpy.utils.unregister_tool(workspace.StructuralTool)
|
||||||
del bpy.types.Scene.BIMStructuralProperties
|
del bpy.types.Scene.BIMStructuralProperties
|
||||||
del bpy.types.Object.BIMStructuralProperties
|
del bpy.types.Object.BIMStructuralProperties
|
||||||
|
|||||||
Reference in New Issue
Block a user