You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix errors and improve UX relating to new animation libraries
- Fix a bug causing an error message when a scene containing an AnimationPlayer with a reset track is saved, by correctly referencing the temporary "default" library. - Make library dropdown in new animation window assign correct library when creating an animation. - Similarly allow choice of library when duplicating animation. - Make library dropdown default to library of currently selected animation. - Make library dropdown show when exactly one library exists, and it isn't [Global]. Include [Global] on the dropdown in this case (will be newly created if dialog is confirmed). - When appending (x) to avoid New Anim name collisions, correctly check target library instead of [Global]. - Add parentheses when appending x when duplicating animations in the library editor, for consistency. - Change titles and prompts to be distinct in name/rename/duplicate dialiogs. - Fix bug in OprionButton.get_selectable_item(true) when last is not selectable. - Fix issues where animation wasn't found on deletion/rename by correctly prepending library name. - Remove an extraneous print_line from animation_track_editor. - Add messages to errors when an animation isn't found.
This commit is contained in:
@@ -320,7 +320,7 @@ int OptionButton::get_selectable_item(bool p_from_last) const {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (int i = get_item_count() - 1; i >= 0; i++) {
|
||||
for (int i = get_item_count() - 1; i >= 0; i--) {
|
||||
if (!is_item_disabled(i) && !is_item_separator(i)) {
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user