aboutsummaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry2016-04-12 18:21:37 +0200
committerRémi Verschelde2016-04-27 08:48:34 +0200
commitdbcf969fbf9d10910904a190c315db89cf40a2e2 (patch)
tree17c2091f53933a97155774296aaebea8f53562ff /scene/main/node.cpp
parent52bf4a76b2138899f5b47f830847c53b8612882a (diff)
downloadgodot-dbcf969fbf9d10910904a190c315db89cf40a2e2.tar.gz
godot-dbcf969fbf9d10910904a190c315db89cf40a2e2.tar.zst
godot-dbcf969fbf9d10910904a190c315db89cf40a2e2.zip
Keep editable instances data when replacing tree root node
(cherry picked from commit 3029f5ee02483021aadd5d5bc48becb2490791f1)
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