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:
@@ -4941,7 +4941,7 @@ Tree::Tree() {
|
||||
add_child(popup_editor, false, INTERNAL_MODE_FRONT);
|
||||
popup_editor_vb = memnew(VBoxContainer);
|
||||
popup_editor->add_child(popup_editor_vb);
|
||||
popup_editor_vb->add_theme_constant_override(SNAME("separation"), 0);
|
||||
popup_editor_vb->add_theme_constant_override("separation", 0);
|
||||
popup_editor_vb->set_anchors_and_offsets_preset(PRESET_WIDE);
|
||||
text_editor = memnew(LineEdit);
|
||||
popup_editor_vb->add_child(text_editor);
|
||||
|
||||
Reference in New Issue
Block a user