create_all_shapes - expose geom library selection to UI

Example - https://files.catbox.moe/oyv9bi.png
This commit is contained in:
Andrej730
2025-09-19 12:51:24 +05:00
parent ede4e49c0c
commit 3c4020be8d
2 changed files with 7 additions and 2 deletions
@@ -258,8 +258,10 @@ class CreateAllShapes(bpy.types.Operator):
geometry_library: bpy.props.EnumProperty( # pyright: ignore[reportRedeclaration]
name="Geometry Library",
description="Geometry library to use for testing shape creation.",
items=[(i, i, "") for i in get_args(ifcopenshell.geom.GEOMETRY_LIBRARY)],
default="opencascade",
# By default use the same library as used for importing ifc project.
default="hybrid-cgal-simple-opencascade",
)
custom_geometry_library: bpy.props.StringProperty( # pyright: ignore[reportRedeclaration]
name="Custom Geometry Library",
+4 -1
View File
@@ -72,7 +72,10 @@ class BIM_PT_debug(Panel):
row = layout.row()
row.operator("bim.convert_to_blender")
row = layout.row()
row = layout.row(align=True)
op_props = wm.operator_properties_last(bpy.ops.bim.create_all_shapes.idname())
row.prop(op_props, "geometry_library", text="")
row.prop(op_props, "custom_geometry_library", text="", placeholder="Custom Geometry Library")
row.operator("bim.create_all_shapes")
row = layout.row()