mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
Fix animation library copy-paste not preserving resource reference
This commit is contained in:
parent
97b8ad1af0
commit
08ef14a037
@ -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() != "") {
|
||||
|
Loading…
Reference in New Issue
Block a user