Преглед изворни кода

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 пре 2 година
родитељ
комит
bb23058464
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );
 
 	}