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

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 ) {