You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGED
This commit is contained in:
@@ -1716,7 +1716,6 @@ void VisualShaderEditor::_update_graph() {
|
||||
|
||||
graph_plugin->clear_links();
|
||||
graph_plugin->make_dirty(true);
|
||||
graph_plugin->update_theme();
|
||||
|
||||
for (int n_i = 0; n_i < nodes.size(); n_i++) {
|
||||
graph_plugin->add_node(type, nodes[n_i]);
|
||||
@@ -3704,9 +3703,11 @@ void VisualShaderEditor::_notification(int p_what) {
|
||||
|
||||
graph->get_panner()->setup((ViewPanner::ControlScheme)EDITOR_GET("editors/panning/sub_editors_panning_scheme").operator int(), ED_GET_SHORTCUT("canvas_item_editor/pan_view"), bool(EditorSettings::get_singleton()->get("editors/panning/simple_panning")));
|
||||
graph->set_warped_panning(bool(EditorSettings::get_singleton()->get("editors/panning/warped_mouse_panning")));
|
||||
[[fallthrough]];
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
graph_plugin->update_theme();
|
||||
|
||||
highend_label->set_modulate(get_theme_color(SNAME("vulkan_color"), SNAME("Editor")));
|
||||
|
||||
node_filter->set_right_icon(Control::get_theme_icon(SNAME("Search"), SNAME("EditorIcons")));
|
||||
@@ -3759,7 +3760,7 @@ void VisualShaderEditor::_notification(int p_what) {
|
||||
|
||||
tools->set_icon(EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("Tools"), SNAME("EditorIcons")));
|
||||
|
||||
if (p_what == NOTIFICATION_THEME_CHANGED && is_visible_in_tree()) {
|
||||
if (is_visible_in_tree()) {
|
||||
_update_graph();
|
||||
}
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user