Blender Git Loki

Git Commits -> Revision cb0b041

Revision cb0b041 by Philipp Oeser (blender-v2.90-release)
August 31, 2020, 11:15 (GMT)
Fix T80258: UILayout.prop_search() issues with datablock 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.

This problem was already once solved in rB249ccab111ac, but resurfaced
in rB937d89afba36.

Now only use the modified UI string if requires_exact_data_name is not
true.

Note: the comments in rB249ccab111ac [reg. library hints and string
properties, also that pointer properties are preferred over string
properties when dealing with IDs] still apply.

Reviewers: severin, campbellbarton

Subscribers:

Commit Details:

Full Hash: cb0b0416f454419cd1902434f7dffa2682417a56
Parent Commit: defe21a
Lines Changed: +1, -1

1 Modified Path:

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