summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2017-11-19 13:57:30 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2017-11-19 21:30:17 +0100
commit728696697174e70bca49e6fd806ffabd20eb728f (patch)
tree9b777f1d6f16988294dbc975ae45acbf89fe4478
parent1552dbfb21f005ae7f747b8867f9da553b678b77 (diff)
Remove out-of-logic assignment of instance's original scene
-rwxr-xr-xscene/main/node.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 2bf45f1189..f1a9b899fa 100755
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -2099,10 +2099,6 @@ Node *Node::_duplicate(int p_flags) const {
ERR_FAIL_COND_V(!node, NULL);
}
- if (get_filename() != "") { //an instance
- node->set_filename(get_filename());
- }
-
List<PropertyInfo> plist;
get_property_list(&plist);