SkinRenderer - Fix Highlight part having wrong transform

This commit is contained in:
miku-666
2024-08-05 15:34:59 +02:00
parent 4987094143
commit d6cbb05edc

View File

@@ -1074,8 +1074,8 @@ namespace PckStudio.Rendering
}
}
Matrix4 bbTransform = cubeMesh.Transform;
bbTransform *= GetGroupTransform(box.Type);
Matrix4 bbTransform = GetGroupTransform(box.Type);
bbTransform *= cubeMesh.Transform;
bbTransform *= transform;
GL.BlendFunc(BlendingFactor.DstAlpha, BlendingFactor.OneMinusSrcAlpha);
DrawBoundingBox(bbTransform, cubeBoundingBox, HighlightlingColor);