mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 09:48:41 +00:00
fixed directly flipping a product type throwing an exception
This commit is contained in:
committed by
Ryan Schultz
parent
23d095d005
commit
a6c2c5d1bb
@@ -705,7 +705,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