Skip to content

Commit

Permalink
RemoveMeshInBoxにて、v1の変数を参照しているのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hitsub committed Mar 22, 2023
1 parent add3adb commit 61397b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public override void Process(OptimizerSession session, MeshInfo2 target, MeshInf
foreach (var vertex in target.Vertices)
{
var actualPosition = vertex.ComputeActualPosition(target, Target.transform.worldToLocalMatrix);
vertex.AdditionalTemporal = Component.boxes.Any(x => x.ContainsVertex(actualPosition)) ? 0 : 1;
vertex.AdditionalTemporal = Component.boxList.GetAsList().Any(x => x.ContainsVertex(actualPosition)) ? 0 : 1;
}

foreach (var subMesh in target.SubMeshes)
Expand Down

0 comments on commit 61397b9

Please sign in to comment.