diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-04-18 08:09:53 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-04-18 08:09:53 +0200 |
commit | f124b5e0acc0e06eb1e641902c68efd96cf7281a (patch) | |
tree | b0268c3978fd4dc89f878e814d6df5a2faf5921b /scene/main/node.cpp | |
parent | c04b3edac4fb1f99f7a58bb3b634954666db47e6 (diff) | |
parent | 3029f5ee02483021aadd5d5bc48becb2490791f1 (diff) |
Merge pull request #4299 from neikeq/pr-issue-4297
Keep editable instances data when replacing tree root node
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r-- | scene/main/node.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index b90edb38b2..f4c41256db 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 |