Merge pull request #34934 from volzhs/copy-params-except-script

Don't copy script with copy params
This commit is contained in:
Rémi Verschelde 2020-01-10 23:57:23 +01:00 committed by GitHub
commit 018b3fa159
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;