mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Some changes left-over after conflict resolution
This commit is contained in:
@@ -269,20 +269,9 @@ def unregister():
|
|||||||
bpy.utils.previews.remove(icons)
|
bpy.utils.previews.remove(icons)
|
||||||
|
|
||||||
for cls in reversed(classes):
|
for cls in reversed(classes):
|
||||||
# GizmoGroup, Gizmo and Macro doesn't have cls.is_registered attribute
|
|
||||||
if set((bpy.types.GizmoGroup, bpy.types.Gizmo)) & set(cls.__bases__):
|
|
||||||
if bpy.data.scenes["Scene"].BIMProperties.module_visibility["drawing"].is_visible:
|
|
||||||
bpy.utils.unregister_class(cls)
|
|
||||||
continue
|
|
||||||
|
|
||||||
if bpy.types.Macro in cls.__bases__:
|
|
||||||
bpy.utils.unregister_class(cls)
|
|
||||||
continue
|
|
||||||
|
|
||||||
if getattr(cls, "is_registered", None) is None:
|
if getattr(cls, "is_registered", None) is None:
|
||||||
bpy.utils.unregister_class(cls)
|
bpy.utils.unregister_class(cls)
|
||||||
else:
|
elif cls.is_registered:
|
||||||
if cls.is_registered is not False:
|
|
||||||
bpy.utils.unregister_class(cls)
|
bpy.utils.unregister_class(cls)
|
||||||
|
|
||||||
bpy.app.handlers.load_post.remove(handler.load_post)
|
bpy.app.handlers.load_post.remove(handler.load_post)
|
||||||
|
|||||||
@@ -1216,10 +1216,6 @@ class RefreshLinkedAggregate(bpy.types.Operator):
|
|||||||
|
|
||||||
return list(set(linked_aggregate_groups)), selected_parents
|
return list(set(linked_aggregate_groups)), selected_parents
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
selected_objs = context.selected_objects
|
|
||||||
selected_elements = [tool.Ifc.get_entity(selected_obj) for selected_obj in selected_objs]
|
|
||||||
active_element = tool.Ifc.get_entity(context.active_object)
|
active_element = tool.Ifc.get_entity(context.active_object)
|
||||||
if not active_element:
|
if not active_element:
|
||||||
self.report({"INFO"}, "Object has no Ifc metadata.")
|
self.report({"INFO"}, "Object has no Ifc metadata.")
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ def generate_spaces_from_walls(ifc, spatial, collector):
|
|||||||
|
|
||||||
spatial.assign_container_to_obj(obj)
|
spatial.assign_container_to_obj(obj)
|
||||||
|
|
||||||
|
|
||||||
def toggle_space_visibility(ifc, spatial):
|
def toggle_space_visibility(ifc, spatial):
|
||||||
model = ifc.get()
|
model = ifc.get()
|
||||||
spaces = model.by_type("IfcSpace")
|
spaces = model.by_type("IfcSpace")
|
||||||
|
|||||||
Reference in New Issue
Block a user