mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
fixed directly flipping a product type throwing an exception
This commit is contained in:
committed by
Ryan Schultz
parent
55a8ac82a7
commit
2a1d9461f2
@@ -702,7 +702,7 @@ class TrueMirrorElements(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
active_context = tool.Geometry.get_active_representation_context(obj)
|
active_context = tool.Geometry.get_active_representation_context(obj)
|
||||||
|
|
||||||
if type_element:
|
if type_element and element.id() != type_element.id():
|
||||||
# obj has a type, use / create inverted type and assign it
|
# obj has a type, use / create inverted type and assign it
|
||||||
self.assign_inverted_type(element)
|
self.assign_inverted_type(element)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user