From f629431fd57c8f161cdade39fc86be13042a146a Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sun, 8 Oct 2023 17:02:29 +0900 Subject: [PATCH] fix: merge bone will break fur --- Editor/Processors/SkinnedMeshes/MeshInfo2.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Editor/Processors/SkinnedMeshes/MeshInfo2.cs b/Editor/Processors/SkinnedMeshes/MeshInfo2.cs index f993bbd6a..853897970 100644 --- a/Editor/Processors/SkinnedMeshes/MeshInfo2.cs +++ b/Editor/Processors/SkinnedMeshes/MeshInfo2.cs @@ -305,7 +305,7 @@ public void WriteToMesh(Mesh destMesh) for (var i = 0; i < Vertices.Count; i++) { vertices[i] = Vertices[i].Position; - normals[i] = Vertices[i].Normal.normalized; + normals[i] = Vertices[i].Normal; } destMesh.vertices = vertices; @@ -317,12 +317,7 @@ public void WriteToMesh(Mesh destMesh) { var tangents = new Vector4[Vertices.Count]; for (var i = 0; i < Vertices.Count; i++) - { - var tangent3 = (Vector3)Vertices[i].Tangent; - var tangentW = Vertices[i].Tangent.w; - tangent3.Normalize(); - tangents[i] = new Vector4(tangent3.x, tangent3.y, tangent3.z, tangentW); - } + tangents[i] = Vertices[i].Tangent; destMesh.tangents = tangents; }