File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments