Merge pull request #34934 from volzhs/copy-params-except-script
Don't copy script with copy params
This commit is contained in:
commit
018b3fa159
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue