UI: Fix Placeholder Bad String Comparison
Bad string comparison in ui_but_placeholder_get() Pull Request: https://projects.blender.org/blender/blender/pulls/113706
This commit is contained in:
committed by
Harley Acheson
parent
7a73f792ed
commit
8919fb8bc7
@@ -5929,7 +5929,7 @@ const char *ui_but_placeholder_get(uiBut *but)
|
||||
RNA_enum_name(rna_enum_id_type_items, idcode, &placeholder);
|
||||
placeholder = CTX_IFACE_(BLT_I18NCONTEXT_ID_ID, placeholder);
|
||||
}
|
||||
else if (type && RNA_struct_identifier(type) != "UnknownType") {
|
||||
else if (type && !STREQ(RNA_struct_identifier(type), "UnknownType")) {
|
||||
placeholder = RNA_struct_ui_name(type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user