mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
prop_with_search - set search_threshold to 0 for relating type properties
Otherwise it had no effect anywhere.
This commit is contained in:
@@ -127,6 +127,7 @@ class CoveringToolUI:
|
|||||||
"relating_type_id",
|
"relating_type_id",
|
||||||
text="",
|
text="",
|
||||||
enable_relating_type_suggestions=True,
|
enable_relating_type_suggestions=True,
|
||||||
|
search_threshold=0,
|
||||||
)
|
)
|
||||||
row.operator("bim.launch_type_manager", icon=tool.Blender.TYPE_MANAGER_ICON, text="")
|
row.operator("bim.launch_type_manager", icon=tool.Blender.TYPE_MANAGER_ICON, text="")
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ class AnnotationToolUI:
|
|||||||
"relating_type_id",
|
"relating_type_id",
|
||||||
text="",
|
text="",
|
||||||
enable_relating_type_suggestions=True,
|
enable_relating_type_suggestions=True,
|
||||||
|
search_threshold=0,
|
||||||
)
|
)
|
||||||
row.operator("bim.launch_annotation_type_manager", icon=tool.Blender.TYPE_MANAGER_ICON, text="")
|
row.operator("bim.launch_annotation_type_manager", icon=tool.Blender.TYPE_MANAGER_ICON, text="")
|
||||||
|
|
||||||
|
|||||||
@@ -663,6 +663,7 @@ class CreateObjectUI:
|
|||||||
button_kwargs={"emboss": False},
|
button_kwargs={"emboss": False},
|
||||||
emboss=True,
|
emboss=True,
|
||||||
enable_relating_type_suggestions=True,
|
enable_relating_type_suggestions=True,
|
||||||
|
search_threshold=0,
|
||||||
)
|
)
|
||||||
# Limit width because names can get really long.
|
# Limit width because names can get really long.
|
||||||
row_.ui_units_x = 10.0
|
row_.ui_units_x = 10.0
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ class BIM_PT_type(Panel):
|
|||||||
"relating_type",
|
"relating_type",
|
||||||
text="",
|
text="",
|
||||||
enable_relating_type_suggestions=True,
|
enable_relating_type_suggestions=True,
|
||||||
|
search_threshold=0,
|
||||||
)
|
)
|
||||||
row.operator("bim.assign_type", icon="CHECKMARK", text="")
|
row.operator("bim.assign_type", icon="CHECKMARK", text="")
|
||||||
row_object.prop(props, "relating_type_object", icon="COPYDOWN")
|
row_object.prop(props, "relating_type_object", icon="COPYDOWN")
|
||||||
|
|||||||
Reference in New Issue
Block a user