Revert "Add missing SNAME macro optimization to all theme methods call"
This reverts commit a988fad9a0.
As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used
everywhere but only in critical code paths. For theme methods specifically, it
was by design that only getters use `SNAME` and not setters.
This commit is contained in:
parent
0154ce2c8d
commit
fc076ece3d
90 changed files with 1648 additions and 1648 deletions
|
|
@ -3301,7 +3301,7 @@ SceneTreeDock::SceneTreeDock(EditorNode *p_editor, Node *p_scene_root, EditorSel
|
|||
VBoxContainer *vbc = this;
|
||||
|
||||
HBoxContainer *filter_hbc = memnew(HBoxContainer);
|
||||
filter_hbc->add_theme_constant_override(SNAME("separate"), 0);
|
||||
filter_hbc->add_theme_constant_override("separate", 0);
|
||||
|
||||
ED_SHORTCUT("scene_tree/rename", TTR("Rename"), Key::F2);
|
||||
ED_SHORTCUT_OVERRIDE("scene_tree/rename", "macos", Key::ENTER);
|
||||
|
|
@ -3349,7 +3349,7 @@ SceneTreeDock::SceneTreeDock(EditorNode *p_editor, Node *p_scene_root, EditorSel
|
|||
filter->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
filter->set_placeholder(TTR("Filter nodes"));
|
||||
filter_hbc->add_child(filter);
|
||||
filter->add_theme_constant_override(SNAME("minimum_character_width"), 0);
|
||||
filter->add_theme_constant_override("minimum_character_width", 0);
|
||||
filter->connect("text_changed", callable_mp(this, &SceneTreeDock::_filter_changed));
|
||||
|
||||
button_create_script = memnew(Button);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue