Operating system: Ubuntu 18.04
Graphics card: GTX 1080
Broken: 69b2f5268114, type: Release build date: 2019-02-11, 00:28:39
Short description of error
A prop_search() in the draw() function of a Panel when used with a 'collections' source will fill the associated string property with the name of the collection plus additional information tacked in front of it (for example a TAB, or the letter O or F depending on the status of the group. This is nice for display purposes but the expected behavior is that the string will contain just the name after selecting a group.
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
- open default startup
- install and enable attached add-on : it will greate a panel 'SamplePanel' in the UI region of the view3d (N or Ctrl N to view)
- deselect everything and create a new group
- The SamplePanel contains a single collection search property, in the dropdown the newly created group will be shown with an F prepended (because it has no linked objects) while the scene collection 'Collection' is shown without anything in front.
- upon selecting a collection the contents of the string property are printed on the console, with an F for the new collection in front of it and extra white-space for the built-in group
Mini add-on reproducing issue: