diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-05-11 20:57:52 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-05-11 20:57:52 -0300 |
commit | 0c57a58056d68e0e859ab8fd91676143cec9ef17 (patch) | |
tree | 94599cdd8ca9e5099a53a9f33f3316ec745f467f /tools/editor/scene_tree_dock.h | |
parent | c7292b1f3d22323352a14e756497b03d66c90666 (diff) |
ability to drag scenes from filesystem to tree for instancing
Diffstat (limited to 'tools/editor/scene_tree_dock.h')
-rw-r--r-- | tools/editor/scene_tree_dock.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/editor/scene_tree_dock.h b/tools/editor/scene_tree_dock.h index 264a05e23e..5dc1e3e12e 100644 --- a/tools/editor/scene_tree_dock.h +++ b/tools/editor/scene_tree_dock.h @@ -130,7 +130,10 @@ class SceneTreeDock : public VBoxContainer { void _fill_path_renames(Vector<StringName> base_path,Vector<StringName> new_base_path,Node * p_node, List<Pair<NodePath,NodePath> > *p_renames); + void _normalize_drop(Node*& to_node, int &to_pos,int p_type); + void _nodes_dragged(Array p_nodes,NodePath p_to,int p_type); + void _files_dropped(Vector<String> p_files,NodePath p_to,int p_type); protected: @@ -140,7 +143,8 @@ public: void import_subscene(); void set_edited_scene(Node* p_scene); - Node* instance(const String& p_path); + void instance(const String& p_path); + void instance_scenes(const Vector<String>& p_files,Node* parent,int p_pos); void set_selected(Node *p_node, bool p_emit_selected=false); void fill_path_renames(Node* p_node, Node *p_new_parent, List<Pair<NodePath,NodePath> > *p_renames); void perform_node_renames(Node* p_base,List<Pair<NodePath,NodePath> > *p_renames, Map<Ref<Animation>, Set<int> > *r_rem_anims=NULL); |