فهرست منبع

return defMat when no animation on joint

Nicolas Cannasse 10 ماه پیش
والد
کامیت
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 ) {