mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
Fix profile based geometry not re-generating properly when exiting edit mode and the profile geometry wasn't modified
This commit is contained in:
@@ -804,7 +804,6 @@ class OverrideModeSetEdit(bpy.types.Operator):
|
|||||||
if usage_type == "PROFILE":
|
if usage_type == "PROFILE":
|
||||||
if len(context.selected_objects) == 1:
|
if len(context.selected_objects) == 1:
|
||||||
bpy.ops.bim.hotkey(hotkey="A_E", description="")
|
bpy.ops.bim.hotkey(hotkey="A_E", description="")
|
||||||
obj.data.BIMMeshProperties.mesh_checksum = tool.Geometry.get_mesh_checksum(obj.data)
|
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
else:
|
else:
|
||||||
self.report({"INFO"}, "Only a single profile-based representation can be edited at a time.")
|
self.report({"INFO"}, "Only a single profile-based representation can be edited at a time.")
|
||||||
@@ -818,7 +817,6 @@ class OverrideModeSetEdit(bpy.types.Operator):
|
|||||||
):
|
):
|
||||||
if len(context.selected_objects) == 1:
|
if len(context.selected_objects) == 1:
|
||||||
bpy.ops.bim.hotkey(hotkey="S_E", description="")
|
bpy.ops.bim.hotkey(hotkey="S_E", description="")
|
||||||
obj.data.BIMMeshProperties.mesh_checksum = tool.Geometry.get_mesh_checksum(obj.data)
|
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
else:
|
else:
|
||||||
self.report({"INFO"}, "Only a single profile-based representation can be edited at a time.")
|
self.report({"INFO"}, "Only a single profile-based representation can be edited at a time.")
|
||||||
@@ -939,13 +937,12 @@ class OverrideModeSetObject(bpy.types.Operator):
|
|||||||
if tool.Profile.is_editing_profile():
|
if tool.Profile.is_editing_profile():
|
||||||
if tool.Pset.get_element_pset(element, "BBIM_Railing"):
|
if tool.Pset.get_element_pset(element, "BBIM_Railing"):
|
||||||
bpy.ops.bim.cad_hotkey(hotkey="S_Q")
|
bpy.ops.bim.cad_hotkey(hotkey="S_Q")
|
||||||
elif obj.data.BIMMeshProperties.mesh_checksum != tool.Geometry.get_mesh_checksum(obj.data):
|
elif tool.Pset.get_element_pset(element, "BBIM_Roof"):
|
||||||
if tool.Pset.get_element_pset(element, "BBIM_Roof"):
|
bpy.ops.bim.cad_hotkey(hotkey="S_Q")
|
||||||
bpy.ops.bim.cad_hotkey(hotkey="S_Q")
|
elif tool.Model.get_usage_type(element):
|
||||||
elif tool.Model.get_usage_type(element):
|
bpy.ops.bim.edit_extrusion_axis()
|
||||||
bpy.ops.bim.edit_extrusion_axis()
|
else:
|
||||||
else:
|
bpy.ops.bim.edit_extrusion_profile()
|
||||||
bpy.ops.bim.edit_extrusion_profile()
|
|
||||||
return self.execute(context)
|
return self.execute(context)
|
||||||
elif obj.data.BIMMeshProperties.ifc_definition_id:
|
elif obj.data.BIMMeshProperties.ifc_definition_id:
|
||||||
if not tool.Geometry.has_geometric_data(obj):
|
if not tool.Geometry.has_geometric_data(obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user