File tree 1 file changed +3
-3
lines changed
spine-ts/spine-player/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -817,8 +817,8 @@ export class SpinePlayer implements Disposable {
817
817
let delta = this . time . delta ;
818
818
819
819
// Load the skeleton if the assets are ready.
820
- let loading = this . assetManager ! . isLoadingComplete ( ) ;
821
- if ( ! this . skeleton && loading ) this . loadSkeleton ( ) ;
820
+ let loading = ! this . assetManager ! . isLoadingComplete ( ) ;
821
+ if ( ! this . skeleton && ! loading ) this . loadSkeleton ( ) ;
822
822
let skeleton = this . skeleton ! ;
823
823
let config = this . config ! ;
824
824
if ( skeleton ) {
@@ -940,7 +940,7 @@ export class SpinePlayer implements Disposable {
940
940
// Draw the loading screen.
941
941
if ( config . showLoading ) {
942
942
this . loadingScreen ! . backgroundColor . setFromColor ( bg ) ;
943
- this . loadingScreen ! . draw ( loading ) ;
943
+ this . loadingScreen ! . draw ( ! loading ) ;
944
944
}
945
945
if ( loading && config . loading ) config . loading ( this , delta ) ;
946
946
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments