mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Minor fix
This commit is contained in:
@@ -630,15 +630,18 @@ class OverrideModeSet(bpy.types.Operator):
|
|||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
should_save: bpy.props.BoolProperty(name="Should Save", default=True)
|
should_save: bpy.props.BoolProperty(name="Should Save", default=True)
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def poll(cls, context):
|
|
||||||
return context.active_object
|
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
return IfcStore.execute_ifc_operator(self, context)
|
||||||
|
|
||||||
|
def _execute(self, context):
|
||||||
objs = context.selected_objects or [context.active_object]
|
objs = context.selected_objects or [context.active_object]
|
||||||
context.active_object.select_set(True)
|
if context.active_object:
|
||||||
|
context.active_object.select_set(True)
|
||||||
edited_objs = []
|
edited_objs = []
|
||||||
for obj in objs:
|
for obj in objs:
|
||||||
|
if not obj:
|
||||||
|
continue
|
||||||
|
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
if not element:
|
if not element:
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ class Geometry:
|
|||||||
def get_styles(cls, obj): pass
|
def get_styles(cls, obj): pass
|
||||||
def get_total_representation_items(cls, obj): pass
|
def get_total_representation_items(cls, obj): pass
|
||||||
def has_data_users(cls, data): pass
|
def has_data_users(cls, data): pass
|
||||||
def import_representation(cls, obj, representation): pass
|
def import_representation(cls, obj, representation, apply_openings=True): pass
|
||||||
def import_representation_parameters(cls, data): pass
|
def import_representation_parameters(cls, data): pass
|
||||||
def is_body_representation(cls, representation): pass
|
def is_body_representation(cls, representation): pass
|
||||||
def is_box_representation(cls, representation): pass
|
def is_box_representation(cls, representation): pass
|
||||||
|
|||||||
Reference in New Issue
Block a user