mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 14:16:22 +00:00
Minor fix.
This commit is contained in:
@@ -39,6 +39,17 @@ class Geometry(blenderbim.core.tool.Geometry):
|
||||
for modifier in obj.modifiers:
|
||||
obj.modifiers.remove(modifier)
|
||||
|
||||
@classmethod
|
||||
def clear_scale(cls, obj):
|
||||
if obj.scale != Vector((1.0, 1.0, 1.0)):
|
||||
if obj.data.users == 1:
|
||||
context_override = {}
|
||||
context_override["object"] = context_override["active_object"] = obj
|
||||
context_override["selected_objects"] = context_override["selected_editable_objects"] = [obj]
|
||||
bpy.ops.object.transform_apply(context_override, location=False, rotation=False, scale=True)
|
||||
else:
|
||||
obj.scale = Vector((1.0, 1.0, 1.0))
|
||||
|
||||
@classmethod
|
||||
def create_dynamic_voids(cls, obj):
|
||||
element = tool.Ifc.get_entity(obj)
|
||||
|
||||
Reference in New Issue
Block a user