Fix T71690: Skip enum item separators in uiItemEnumR_string_prop
Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D6589
This commit is contained in:
@@ -2436,6 +2436,10 @@ void uiItemEnumR_string_prop(uiLayout *layout,
|
||||
}
|
||||
|
||||
for (a = 0; item[a].identifier; a++) {
|
||||
if (item[a].identifier[0] == '\0') {
|
||||
/* Skip enum item separators. */
|
||||
continue;
|
||||
}
|
||||
if (item[a].value == ivalue) {
|
||||
const char *item_name = name ?
|
||||
name :
|
||||
|
||||
Reference in New Issue
Block a user