You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
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:
@@ -2834,7 +2834,7 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) {
|
||||
add_child(top_vbc);
|
||||
|
||||
HBoxContainer *toolbar_hbc = memnew(HBoxContainer);
|
||||
toolbar_hbc->add_theme_constant_override(SNAME("separation"), 0);
|
||||
toolbar_hbc->add_theme_constant_override("separation", 0);
|
||||
top_vbc->add_child(toolbar_hbc);
|
||||
|
||||
button_hist_prev = memnew(Button);
|
||||
@@ -2873,7 +2873,7 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) {
|
||||
toolbar_hbc->add_child(button_toggle_display_mode);
|
||||
|
||||
toolbar2_hbc = memnew(HBoxContainer);
|
||||
toolbar2_hbc->add_theme_constant_override(SNAME("separation"), 0);
|
||||
toolbar2_hbc->add_theme_constant_override("separation", 0);
|
||||
top_vbc->add_child(toolbar2_hbc);
|
||||
|
||||
tree_search_box = memnew(LineEdit);
|
||||
|
||||
Reference in New Issue
Block a user