Fix T71690: Skip enum item separators in uiItemEnumR_string_prop

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D6589
This commit is contained in:
2020-01-15 16:09:27 +01:00
parent d571e9055a
commit c27acbcfb7

View File

@@ -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 :