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:
@@ -181,7 +181,7 @@ void EditorPath::_notification(int p_what) {
|
||||
update_path();
|
||||
|
||||
sub_objects_icon->set_texture(get_theme_icon(SNAME("select_arrow"), SNAME("Tree")));
|
||||
current_object_label->add_theme_font_override(SNAME("font"), get_theme_font(SNAME("main"), SNAME("EditorFonts")));
|
||||
current_object_label->add_theme_font_override("font", get_theme_font(SNAME("main"), SNAME("EditorFonts")));
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_READY: {
|
||||
@@ -198,8 +198,8 @@ EditorPath::EditorPath(EditorHistory *p_history) {
|
||||
|
||||
MarginContainer *main_mc = memnew(MarginContainer);
|
||||
main_mc->set_anchors_and_offsets_preset(PRESET_WIDE);
|
||||
main_mc->add_theme_constant_override(SNAME("margin_left"), 4 * EDSCALE);
|
||||
main_mc->add_theme_constant_override(SNAME("margin_right"), 6 * EDSCALE);
|
||||
main_mc->add_theme_constant_override("margin_left", 4 * EDSCALE);
|
||||
main_mc->add_theme_constant_override("margin_right", 6 * EDSCALE);
|
||||
add_child(main_mc);
|
||||
|
||||
HBoxContainer *main_hb = memnew(HBoxContainer);
|
||||
|
||||
Reference in New Issue
Block a user