aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_sub_scene.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-12-14 10:25:19 -0300
committerJuan Linietsky2015-12-14 10:25:19 -0300
commit4713bcccf3de5f8e0f577f29a67f38bfb8a99b57 (patch)
treefa79263ca3cd17786086f3c9a93f40270abb73a5 /tools/editor/editor_sub_scene.cpp
parent83e0e97214a4fad635e5992bbbbd413642d76436 (diff)
parentc262becd7bb87fc17e5a4d3b737c13682855da1a (diff)
downloadgodot-4713bcccf3de5f8e0f577f29a67f38bfb8a99b57.tar.gz
godot-4713bcccf3de5f8e0f577f29a67f38bfb8a99b57.tar.zst
godot-4713bcccf3de5f8e0f577f29a67f38bfb8a99b57.zip
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'tools/editor/editor_sub_scene.cpp')
-rw-r--r--tools/editor/editor_sub_scene.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/editor/editor_sub_scene.cpp b/tools/editor/editor_sub_scene.cpp
index 2a6eba255..d7d79e5cc 100644
--- a/tools/editor/editor_sub_scene.cpp
+++ b/tools/editor/editor_sub_scene.cpp
@@ -196,7 +196,11 @@ void EditorSubScene::_bind_methods() {
EditorSubScene::EditorSubScene() {
+ scene=NULL;
+
set_title("Select Sub-Scene..");
+ set_hide_on_ok(false);
+
VBoxContainer *vb = memnew( VBoxContainer );
add_child(vb);
set_child_rect(vb);
@@ -211,9 +215,11 @@ EditorSubScene::EditorSubScene() {
hb->add_child(b);
b->connect("pressed",this,"_path_browse");
vb->add_margin_child("Scene Path:",hb);
+
tree = memnew( Tree );
tree->set_v_size_flags(SIZE_EXPAND_FILL);
- vb->add_margin_child("Import From Node:",tree)->set_v_size_flags(SIZE_EXPAND_FILL);
+ vb->add_margin_child("Import From Node:",tree,true);
+ tree->connect("item_activated",this,"_ok");
file_dialog = memnew( EditorFileDialog );
List<String> extensions;
@@ -228,8 +234,4 @@ EditorSubScene::EditorSubScene() {
add_child(file_dialog);
file_dialog->connect("file_selected",this,"_path_selected");
- scene=NULL;
-
- set_hide_on_ok(false);
-
}