Blender Git Loki

Git Commits -> Revision 249ccab

Revision 249ccab by Julian Eisel (master)
May 11, 2020, 15:13 (GMT)
Fix T76621: UILayout.prop_search() broken for data-block names

If the search menu was used for a string property, and a data-block was
selected from the search, the value set would be an invalid name. The property
would get the modified UI string, not the proper data name set.

Mistake in rBd6cefef98f87.

This is more of a temporary fix to make the menu behave like before above's
commit. So the library hints this added will not be shown for string properties
anymore. This would need further changes in the UI code (see
https://developer.blender.org/P1380) but is too unsafe for 2.83 at this point.
Even if this is done, the note below still applies.

NOTE: Data-blocks should not be referenced by name only, as it's possible to
have duplicate data-block names with linking and especially with library
overriding.
Instead, pointer properties should be used, `UILayout.prop_search()` can then
properly deal with linked and overridden data-blocks.

Commit Details:

Full Hash: 249ccab111ac05158064d20ba0fbd1f618f9aa92
Parent Commit: 27e3361
Lines Changed: +15, -5

1 Modified Path:

/source/blender/editors/interface/interface_utils.c (+15, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021