From f61cd516434d0f8e032553e569d2dcc5383ffd9d Mon Sep 17 00:00:00 2001 From: volzhs Date: Thu, 9 Jan 2020 06:34:47 +0900 Subject: [PATCH] Don't copy script with copy params --- editor/editor_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index 8ca202a4113..0b43fd5ac09 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::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;