bim.create_shape_from_step_id - include curves by default

Though it's still possible to disable it from Redo menu.
This commit is contained in:
Andrej730
2025-07-25 12:39:44 +05:00
parent 7322cc9018
commit 3c338db364
2 changed files with 2 additions and 3 deletions
@@ -322,7 +322,7 @@ class CreateShapeFromStepId(bpy.types.Operator):
bl_description = "Recreate a mesh object from a STEP ID"
bl_options = {"REGISTER", "UNDO"}
should_include_curves: bpy.props.BoolProperty()
should_include_curves: bpy.props.BoolProperty(default=True)
step_id: bpy.props.IntProperty(default=0)
geometry_library: bpy.props.EnumProperty(
name="Geometry Library",
+1 -2
View File
@@ -92,8 +92,7 @@ class BIM_PT_debug(Panel):
row.operator("bim.restart_blender")
row = layout.split(factor=0.5, align=True)
row.operator("bim.create_shape_from_step_id").should_include_curves = False
row.operator("bim.create_shape_from_step_id", text="", icon="IPO_ELASTIC").should_include_curves = True
row.operator("bim.create_shape_from_step_id")
row.prop(props, "step_id", text="")
row = layout.split(factor=0.7, align=True)