From d9e3acece2eae50141017ec9216da64d42e230ec Mon Sep 17 00:00:00 2001 From: Flavelius <8841352+Flavelius@users.noreply.github.com> Date: Sat, 25 Nov 2023 22:35:51 +0100 Subject: [PATCH] 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 --- editor/editor_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index e4f198a52905..fe8c42ea3b4d 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -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; }