Explorar o código

AnimationMixer: Fix wrong reference count in `_bindAction()`. (#23102)

* fix: miss binding.referenceCount++ error when AnimationMixer._bindAction #23096

* Update AnimationMixer.js

Co-authored-by: wangren.wr <[email protected]>
Co-authored-by: Michael Herzog <[email protected]>
walton.wang %!s(int64=3) %!d(string=hai) anos
pai
achega
d088fd24fc
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/animation/AnimationMixer.js

+ 1 - 0
src/animation/AnimationMixer.js

@@ -48,6 +48,7 @@ class AnimationMixer extends EventDispatcher {
 
 			if ( binding !== undefined ) {
 
+				++ binding.referenceCount;
 				bindings[ i ] = binding;
 
 			} else {