mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Don't copy script with copy params
This commit is contained in:
parent
5a8107f70a
commit
f61cd51643
@ -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 New Issue
Block a user