diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-04-08 11:03:37 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-04-08 11:03:37 +0200 |
commit | 856a8226a5306632f5dd4d9e9c916d89e3e21495 (patch) | |
tree | f5ed5052dfc9d6793b78b2353ba84732676beb08 /editor/scene_tree_dock.cpp | |
parent | c2c11fc063e723c41579e6307e40fd16ac5334c4 (diff) |
Small fixes, mostly dupicated code
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r-- | editor/scene_tree_dock.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 7e4861cd09..fd8720e2c8 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -811,10 +811,8 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { List<Node *>::Element *e = selection.front(); if (e) { Node *node = e->get(); - if (node) { - if (node && node->get_scene_inherited_state().is_valid()) { - scene_tree->emit_signal("open", node->get_scene_inherited_state()->get_path()); - } + if (node && node->get_scene_inherited_state().is_valid()) { + scene_tree->emit_signal("open", node->get_scene_inherited_state()->get_path()); } } } break; |