Blender Git Loki

Git Commits -> Revision 26d5c24

Revision 26d5c24 by Philipp Oeser (master)
September 1, 2020, 13:24 (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: campbellbarton

Differential Revision: https://developer.blender.org/D8759

(cherry picked from 2.90 commit
cb0b0416f454419cd1902434f7dffa2682417a56)

Commit Details:

Full Hash: 26d5c24f0aad85d137f7e465858877d80c0d6a36
Parent Commit: 9259052
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