Browse Source

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
Flavelius 1 year ago
parent
commit
d9e3acece2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/editor_data.cpp

+ 1 - 1
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;
 		}