mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Addendum #1710 : Remove superfluous parameters fetching
bim.get_representation_ifc_parameters already called earlier in the code
This commit is contained in:
@@ -523,9 +523,6 @@ class ExtrusionWidget(types.GizmoGroup):
|
|||||||
def update(self, ctx):
|
def update(self, ctx):
|
||||||
"""updating object"""
|
"""updating object"""
|
||||||
bpy.ops.bim.update_parametric_representation()
|
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
|
target = ctx.object
|
||||||
prop = target.data.BIMMeshProperties.ifc_parameters.get("IfcExtrudedAreaSolid/Depth")
|
prop = target.data.BIMMeshProperties.ifc_parameters.get("IfcExtrudedAreaSolid/Depth")
|
||||||
self.handle.target_set_prop("offset", prop, "value")
|
self.handle.target_set_prop("offset", prop, "value")
|
||||||
|
|||||||
Reference in New Issue
Block a user