SkinRenderer - Fix part highlighting respecting inflate

This commit is contained in:
miku-666
2024-08-06 14:16:34 +02:00
parent 34d6047311
commit 5ab3e589a6

View File

@@ -1053,7 +1053,12 @@ namespace PckStudio.Rendering
if (ModelData.IndexInRange(SelectedIndex))
{
SkinBOX box = ModelData[SelectedIndex];
BoundingBox cubeBoundingBox = Cube.FromSkinBox(box).GetBoundingBox();
Cube cube = Cube.FromSkinBox(box);
cube.Inflate = autoInflateOverlayParts && box.IsOverlayPart() ? box.Type == "HEADWEAR" ? OverlayScale * 2 : OverlayScale : 0f;
BoundingBox cubeBoundingBox = cube.GetBoundingBox();
if (meshStorage.ContainsKey(box.Type))
{