Make Copy->paste Params skip resource_path

Resource path should not be attempted to be taken over, as that's not intended for copy-paste and fails anyway, but this results in the whole paste operation failing as well
This commit is contained in:
Flavelius 2023-11-25 22:35:51 +01:00
parent 1ba920fada
commit d9e3acece2
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ void EditorData::copy_object_params(Object *p_object) {
p_object->get_property_list(&pinfo);
for (const PropertyInfo &E : pinfo) {
if (!(E.usage & PROPERTY_USAGE_EDITOR) || E.name == "script" || E.name == "scripts") {
if (!(E.usage & PROPERTY_USAGE_EDITOR) || E.name == "script" || E.name == "scripts" || E.name == "resource_path") {
continue;
}