summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-10 23:57:23 +0100
committerGitHub <noreply@github.com>2020-01-10 23:57:23 +0100
commit018b3fa1592ab7bf9f9b70a188a1300871d18615 (patch)
treed6d10dec68eff68a839e224e7f56eaf8a0ff84b2
parent14c9316f45f8108e6156fc42a7b56c517577ecf8 (diff)
parentf61cd516434d0f8e032553e569d2dcc5383ffd9d (diff)
Merge pull request #34934 from volzhs/copy-params-except-script
Don't copy script with copy params
-rw-r--r--editor/editor_data.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp
index 8ca202a411..0b43fd5ac0 100644
--- a/editor/editor_data.cpp
+++ b/editor/editor_data.cpp
@@ -314,7 +314,7 @@ void EditorData::copy_object_params(Object *p_object) {
for (List<PropertyInfo>::Element *E = pinfo.front(); E; E = E->next()) {
- if (!(E->get().usage & PROPERTY_USAGE_EDITOR))
+ if (!(E->get().usage & PROPERTY_USAGE_EDITOR) || E->get().name == "script" || E->get().name == "scripts")
continue;
PropertyData pd;