You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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:
@@ -247,11 +247,11 @@ TextureLayeredEditor::TextureLayeredEditor() {
|
||||
info->set_anchor(SIDE_TOP, 1);
|
||||
info->set_h_grow_direction(GROW_DIRECTION_BEGIN);
|
||||
info->set_v_grow_direction(GROW_DIRECTION_BEGIN);
|
||||
info->add_theme_color_override(SNAME("font_color"), Color(1, 1, 1, 1));
|
||||
info->add_theme_color_override(SNAME("font_shadow_color"), Color(0, 0, 0, 0.5));
|
||||
info->add_theme_constant_override(SNAME("shadow_outline_size"), 1);
|
||||
info->add_theme_constant_override(SNAME("shadow_offset_x"), 2);
|
||||
info->add_theme_constant_override(SNAME("shadow_offset_y"), 2);
|
||||
info->add_theme_color_override("font_color", Color(1, 1, 1, 1));
|
||||
info->add_theme_color_override("font_shadow_color", Color(0, 0, 0, 0.5));
|
||||
info->add_theme_constant_override("shadow_outline_size", 1);
|
||||
info->add_theme_constant_override("shadow_offset_x", 2);
|
||||
info->add_theme_constant_override("shadow_offset_y", 2);
|
||||
|
||||
setting = false;
|
||||
layer->connect("value_changed", Callable(this, "_layer_changed"));
|
||||
|
||||
Reference in New Issue
Block a user