Procházet zdrojové kódy

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 <wangren.wr@alibaba-inc.com>
Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
walton.wang před 4 roky
rodič
revize
d088fd24fc
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/animation/AnimationMixer.js

+ 1 - 0
src/animation/AnimationMixer.js

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

粤ICP备19079148号