Skip to content

Remove duplicate displayed node update call

Rafał Mikrut requested to merge github/fork/Nehluxhes/node_update_twice into master

Created by: Nehluxhes

Each time a new node is selected in the scene tree dock, both _node_selected() and _selection_changed() are called. They are then both calling editor->push_item(), resulting in potentially lots of duplicate calls downstream (eg a Gridmap node is loaded twice) This fixes this.

Ideally I think that _node_selected() and _selection_changed() should be merged, they are redundant.

Merge request reports