mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 08:45:22 +00:00
bim.enum_property_search - note on activate_init
This commit is contained in:
@@ -977,6 +977,8 @@ class BIM_OT_enum_property_search(bpy.types.Operator):
|
|||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
# Mandatory to access context.data in update :
|
# Mandatory to access context.data in update :
|
||||||
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,
|
||||||
|
# though it would fit perfectly.
|
||||||
self.layout.prop_search(self, "dummy_name", self, "collection_names")
|
self.layout.prop_search(self, "dummy_name", self, "collection_names")
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
|||||||
Reference in New Issue
Block a user