Explorar o código

CCDIKSolver: Make `.createHelper()` compatible with generic `SkinnedMesh`. (#24988)

* Update CCDIKSolver.js

`CCDIKSolver.createHelper()` fallbacks to `this.iks` if no MMD

* Update examples/jsm/animation/CCDIKSolver.js

Co-authored-by: Takahiro <[email protected]>

Co-authored-by: Takahiro <[email protected]>
Antoine BERNIER %!s(int64=2) %!d(string=hai) anos
pai
achega
bb23058464
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/animation/CCDIKSolver.js

+ 1 - 1
examples/jsm/animation/CCDIKSolver.js

@@ -217,7 +217,7 @@ class CCDIKSolver {
 	 */
 	createHelper() {
 
-		return new CCDIKHelper( this.mesh, this.mesh.geometry.userData.MMD.iks );
+		return new CCDIKHelper( this.mesh, this.iks );
 
 	}