aboutsummaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry2016-04-12 18:21:37 +0200
committerIgnacio Etcheverry2016-04-12 20:49:43 +0200
commit3029f5ee02483021aadd5d5bc48becb2490791f1 (patch)
tree6655cc75e1e3369ff08b1c1a684a3bbbc49bbad2 /scene/main/node.cpp
parentd454e64f429affb89de036eed6daa5c6e5278492 (diff)
downloadgodot-3029f5ee02483021aadd5d5bc48becb2490791f1.tar.gz
godot-3029f5ee02483021aadd5d5bc48becb2490791f1.tar.zst
godot-3029f5ee02483021aadd5d5bc48becb2490791f1.zip
Keep editable instances data when replacing tree root node
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index b90edb38b..f4c41256d 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1374,6 +1374,16 @@ bool Node::is_editable_instance(Node *p_node) const {
return data.editable_instances.has(p);
}
+void Node::set_editable_instances(const HashMap<NodePath,int>& p_editable_instances) {
+
+ data.editable_instances=p_editable_instances;
+}
+
+HashMap<NodePath,int> Node::get_editable_instances() const {
+
+ return data.editable_instances;
+}
+
#if 0