Skip to content

Commit be60c4d

Browse files
committed
Animation codec tweaks
1 parent bcf28f5 commit be60c4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/animations/animation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export class Animation extends AnimationItem {
708708
id: 'reload',
709709
name: 'menu.animation.reload',
710710
icon: 'refresh',
711-
condition: (animation) => (Format.animation_files && Format.id.includes('bedrock') && isApp && animation.saved),
711+
condition: (animation) => (isApp && AnimationCodec.getCodec(animation)?.reloadAnimation && animation.saved),
712712
click(animation) {
713713
AnimationCodec.getCodec(animation)?.reloadAnimation(animation);
714714
}
@@ -1042,9 +1042,9 @@ BARS.defineActions(function() {
10421042
paths.forEach(path => {
10431043
codec?.exportFile(path);
10441044
})
1045-
} else {
1045+
} else if (codec.saveAnimation) {
10461046
Animation.all.forEach(animation => {
1047-
codec.exportAnimation();
1047+
codec.saveAnimation();
10481048
})
10491049
}
10501050

js/animations/animation_codec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface SharedOptions {
2020
*/
2121
importFile?: (file: FileResult, auto_loaded?: boolean) => void
2222
/**
23-
* Load the animations from an animation file into the project.
23+
* Load the animations from an animation file into the project. Not required on generic codecs
2424
* @param file File to load
2525
* @param animation_filter If specified, only animations with an ID in the list get imported
2626
*/

0 commit comments

Comments
 (0)