diff options
author | jmb462 <jmb462@gmail.com> | 2021-08-20 14:48:34 +0200 |
---|---|---|
committer | jmb462 <jmb462@gmail.com> | 2021-08-20 14:50:24 +0200 |
commit | 54de7114c5bdaa2ee64ad6fd2e2cc40063016eb9 (patch) | |
tree | 98614dc39f3a11560c13d9337c3c8f17b989472b /editor/plugins/node_3d_editor_plugin.cpp | |
parent | 75697c0dfda2c4bbb5456b78d54cd6a2664c8a49 (diff) |
Add missing SNAME macro optimization for StringName in some functions
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 4300a56ef0..b2b874fdc5 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -6030,7 +6030,7 @@ void fragment() { void Node3DEditor::_update_context_menu_stylebox() { // This must be called when the theme changes to follow the new accent color. Ref<StyleBoxFlat> context_menu_stylebox = memnew(StyleBoxFlat); - const Color accent_color = EditorNode::get_singleton()->get_gui_base()->get_theme_color("accent_color", "Editor"); + const Color accent_color = EditorNode::get_singleton()->get_gui_base()->get_theme_color(SNAME("accent_color"), SNAME("Editor")); context_menu_stylebox->set_bg_color(accent_color * Color(1, 1, 1, 0.1)); // Add an underline to the StyleBox, but prevent its minimum vertical size from changing. context_menu_stylebox->set_border_color(accent_color); |