Addendum #1710 : Remove superfluous parameters fetching

bim.get_representation_ifc_parameters already called earlier in the code
This commit is contained in:
Gorgious
2021-08-31 14:37:37 +02:00
parent 5485177888
commit 06d3ed7d2a
@@ -523,9 +523,6 @@ class ExtrusionWidget(types.GizmoGroup):
def update(self, ctx):
"""updating object"""
bpy.ops.bim.update_parametric_representation()
# parameters disappear after update
# need to retrieve and rebind them again
bpy.ops.bim.get_representation_ifc_parameters()
target = ctx.object
prop = target.data.BIMMeshProperties.ifc_parameters.get("IfcExtrudedAreaSolid/Depth")
self.handle.target_set_prop("offset", prop, "value")