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:
@@ -302,7 +302,7 @@ SectionedInspector::SectionedInspector() :
|
||||
sections(memnew(Tree)),
|
||||
filter(memnew(SectionedInspectorFilter)),
|
||||
inspector(memnew(EditorInspector)) {
|
||||
add_theme_constant_override(SNAME("autohide"), 1); // Fixes the dragger always showing up
|
||||
add_theme_constant_override("autohide", 1); // Fixes the dragger always showing up
|
||||
|
||||
VBoxContainer *left_vb = memnew(VBoxContainer);
|
||||
left_vb->set_custom_minimum_size(Size2(190, 0) * EDSCALE);
|
||||
|
||||
Reference in New Issue
Block a user