瀏覽代碼

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 );
 
 	}