소스 검색

return defMat when no animation on joint

Nicolas Cannasse 9 달 전
부모
커밋
885a3040a5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      h3d/scene/Skin.hx

+ 1 - 1
h3d/scene/Skin.hx

@@ -176,7 +176,7 @@ class Skin extends MultiMaterial {
 		if( j == null ) return null;
 		if( additive )
 			return additivePose == null ? null : additivePose[j.index];
-		return currentRelPose[j.index];
+		return currentRelPose[j.index] ?? j.defMat;
 	}
 
 	public function setJointRelPosition( name : String, pos : h3d.Matrix, additive = false ) {