1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Show Options Dialog for NodePath and File in clicked button position.

Auto select newly created nodes.
This commit is contained in:
Daniel J. Ramirez
2017-12-23 14:54:45 -06:00
parent 9969c5c6a1
commit 07fd5456c8
3 changed files with 34 additions and 11 deletions

View File

@@ -1360,6 +1360,7 @@ void SceneTreeDock::_create() {
editor_data->get_undo_redo().commit_action();
editor->push_item(c);
editor_selection->clear();
editor_selection->add_node(child);
if (Object::cast_to<Control>(c)) {
//make editor more comfortable, so some controls don't appear super shrunk
Control *ct = Object::cast_to<Control>(c);