UI: More Defaults for Search Placeholders
When looking for automatic placeholder string For UI_BTYPE_SEARCH_MENU, use property UI Name as last resort. Pull Request: https://projects.blender.org/blender/blender/pulls/113792
This commit is contained in:
parent
06be6c5fb1
commit
606723b3e2
@ -5911,6 +5911,9 @@ const char *ui_but_placeholder_get(uiBut *but)
|
||||
else if (type && !STREQ(RNA_struct_identifier(type), "UnknownType")) {
|
||||
placeholder = RNA_struct_ui_name(type);
|
||||
}
|
||||
else {
|
||||
placeholder = RNA_property_ui_name(but->rnaprop);
|
||||
}
|
||||
}
|
||||
else if (but->type == UI_BTYPE_TEXT && but->icon == ICON_VIEWZOOM) {
|
||||
placeholder = CTX_IFACE_(BLT_I18NCONTEXT_ID_WINDOWMANAGER, "Search");
|
||||
|
@ -5194,7 +5194,7 @@ static void rna_def_modifier_uvwarp(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "uv_layer", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, nullptr, "uvlayer_name");
|
||||
RNA_def_property_ui_text(prop, "UV Layer", "UV Layer name");
|
||||
RNA_def_property_ui_text(prop, "UV Map", "UV map name");
|
||||
RNA_def_property_string_funcs(prop, nullptr, nullptr, "rna_UVWarpModifier_uvlayer_name_set");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user