mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Added current property, in search, as a lot of times your search is relative to what it was before.
This commit is contained in:
@@ -1057,7 +1057,10 @@ class BIM_OT_enum_property_search(bpy.types.Operator):
|
|||||||
self.layout.context_pointer_set(name="data", data=self.data)
|
self.layout.context_pointer_set(name="data", data=self.data)
|
||||||
# NOTE: activate_init don't work with prop_search, so cannot activate field for typing,
|
# NOTE: activate_init don't work with prop_search, so cannot activate field for typing,
|
||||||
# though it would fit perfectly.
|
# though it would fit perfectly.
|
||||||
self.layout.prop_search(self, "dummy_name", self, "collection_names")
|
if self.dummy_name:
|
||||||
|
self.layout.label(text=f"Current: {self.dummy_name}")
|
||||||
|
|
||||||
|
self.layout.prop_search(self, "dummy_name", self, "collection_names", text=self.prop_name)
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|||||||
Reference in New Issue
Block a user