diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-10 23:57:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 23:57:23 +0100 |
commit | 018b3fa1592ab7bf9f9b70a188a1300871d18615 (patch) | |
tree | d6d10dec68eff68a839e224e7f56eaf8a0ff84b2 /editor | |
parent | 14c9316f45f8108e6156fc42a7b56c517577ecf8 (diff) | |
parent | f61cd516434d0f8e032553e569d2dcc5383ffd9d (diff) |
Merge pull request #34934 from volzhs/copy-params-except-script
Don't copy script with copy params
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_data.cpp | 2 |
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; |