UILayout: prop_search() broken #76621

Closed
opened 2020-05-10 22:09:38 +02:00 by Wayde Moss · 5 comments
Member

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.66

Blender Version
Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-10 13:42, hash: 51ac411ce8
Worked: 2.82a

Short description of error
Python UILayout.prop_search() is broken. Property values are marked as invalid despite existing within the searched list.
Blend file: script_prop_search_broken.blend
prop_search_bug.mp4

Exact steps for others to reproduce the error
Open the Blend file and run the script.
Go to the 3D view->Panels (N)->BUG. Note the property is highlighted red.
Use the UI to select "Text" instead.
The property is no longer red, but it's wrong now. The property has been set to " Text".

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.66 **Blender Version** Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-10 13:42, hash: `51ac411ce8` Worked: 2.82a **Short description of error** Python UILayout.prop_search() is broken. Property values are marked as invalid despite existing within the searched list. Blend file: [script_prop_search_broken.blend](https://archive.blender.org/developer/F8526693/script_prop_search_broken.blend) [prop_search_bug.mp4](https://archive.blender.org/developer/F8526692/prop_search_bug.mp4) **Exact steps for others to reproduce the error** Open the Blend file and run the script. Go to the 3D view->Panels (N)->BUG. Note the property is highlighted red. Use the UI to select "Text" instead. The property is no longer red, but it's wrong now. The property has been set to " Text".
Author
Member

Added subscriber: @wbmoss_dev

Added subscriber: @wbmoss_dev
Author
Member

I found a simple workaround. Just make the custom property a PointerProperty of the desired type then use prop() instead of prop_search().

I found a simple workaround. Just make the custom property a PointerProperty of the desired type then use prop() instead of prop_search().

This issue was referenced by 249ccab111

This issue was referenced by 249ccab111ac05158064d20ba0fbd1f618f9aa92
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Julian Eisel self-assigned this 2020-05-11 17:13:27 +02:00
Thomas Dinges added this to the 2.83 LTS milestone 2023-02-08 16:35:48 +01:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#76621
No description provided.