From 4f8e37d733a6b604005ece8541f527093741fe82 Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Sun, 7 Sep 2025 11:03:21 -0500 Subject: [PATCH] Added current property, in search, as a lot of times your search is relative to what it was before. --- src/bonsai/bonsai/bim/operator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/operator.py b/src/bonsai/bonsai/bim/operator.py index 0aee263f2a..d3a07e800e 100644 --- a/src/bonsai/bonsai/bim/operator.py +++ b/src/bonsai/bonsai/bim/operator.py @@ -1057,7 +1057,10 @@ class BIM_OT_enum_property_search(bpy.types.Operator): 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, # 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): return {"FINISHED"}