diff options
| author | Flavelius <8841352+Flavelius@users.noreply.github.com> | 2023-11-25 22:35:51 +0100 |
|---|---|---|
| committer | Flavelius <8841352+Flavelius@users.noreply.github.com> | 2023-11-25 22:35:51 +0100 |
| commit | d9e3acece2eae50141017ec9216da64d42e230ec (patch) | |
| tree | e5ba35d2ffec1a97ab7d90a8abc91c38e593439d | |
| parent | 1ba920fada9efc8c4476ded50fe673b8db541366 (diff) | |
| download | redot-engine-d9e3acece2eae50141017ec9216da64d42e230ec.tar.gz | |
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
| -rw-r--r-- | editor/editor_data.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index e4f198a529..fe8c42ea3b 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; } |
