Fix animation library copy-paste not preserving resource reference

(cherry picked from commit 08ef14a037)
This commit is contained in:
Mikael Hermansson 2024-07-16 11:34:44 +02:00 committed by Rémi Verschelde
parent 8e1d1a54fe
commit 95a0525361
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -561,7 +561,9 @@ void AnimationLibraryEditor::_button_pressed(TreeItem *p_item, int p_column, int
return;
}
anim = anim->duplicate(); // Users simply dont care about referencing, so making a copy works better here.
if (!anim->get_path().is_resource_file()) {
anim = anim->duplicate(); // Users simply dont care about referencing, so making a copy works better here.
}
String base_name;
if (anim->get_name() != "") {