mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
create_all_shapes - expose geom library selection to UI
Example - https://files.catbox.moe/oyv9bi.png
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user