File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,11 @@ export function EcctrlAnimation(props: EcctrlAnimationProps) {
38
38
curAnimation === props . animationSet . action3 ||
39
39
curAnimation === props . animationSet . action4
40
40
) {
41
- action . reset ( ) . fadeIn ( 0.2 ) . setLoop ( THREE . LoopOnce , 0 ) . play ( ) ;
41
+ action
42
+ . reset ( )
43
+ . fadeIn ( 0.2 )
44
+ . setLoop ( THREE . LoopOnce , undefined as number )
45
+ . play ( ) ;
42
46
action . clampWhenFinished = true ;
43
47
} else {
44
48
action . reset ( ) . fadeIn ( 0.2 ) . play ( ) ;
Original file line number Diff line number Diff line change @@ -162,8 +162,11 @@ export default function CharacterModel(props: CharacterModelProps) {
162
162
curAnimation === animationSet . action3 ||
163
163
curAnimation === animationSet . action4
164
164
) {
165
- // TODO: check if 0 works the same as undefined
166
- action . reset ( ) . fadeIn ( 0.2 ) . setLoop ( THREE . LoopOnce , 0 ) . play ( ) ;
165
+ action
166
+ . reset ( )
167
+ . fadeIn ( 0.2 )
168
+ . setLoop ( THREE . LoopOnce , undefined as number )
169
+ . play ( ) ;
167
170
action . clampWhenFinished = true ;
168
171
// Only show mug during cheer action
169
172
if ( curAnimation === animationSet . action3 ) {
Original file line number Diff line number Diff line change @@ -38,7 +38,11 @@ export function EcctrlAnimation(props: EcctrlAnimationProps) {
38
38
curAnimation === props . animationSet . action3 ||
39
39
curAnimation === props . animationSet . action4
40
40
) {
41
- action . reset ( ) . fadeIn ( 0.2 ) . setLoop ( THREE . LoopOnce , 0 ) . play ( ) ;
41
+ action
42
+ . reset ( )
43
+ . fadeIn ( 0.2 )
44
+ . setLoop ( THREE . LoopOnce , undefined as number )
45
+ . play ( ) ;
42
46
action . clampWhenFinished = true ;
43
47
} else {
44
48
action . reset ( ) . fadeIn ( 0.2 ) . play ( ) ;
You can’t perform that action at this time.
0 commit comments