From 3afc1a2a01e01b0defb94dd5b65e843365b6933e Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Wed, 10 Dec 2025 07:24:18 +0100 Subject: [PATCH] PckStudio(SkinRenderer) - Remove unused member variable 'autoInflateOverlayParts' --- PCK-Studio/Rendering/SkinRenderer.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PCK-Studio/Rendering/SkinRenderer.cs b/PCK-Studio/Rendering/SkinRenderer.cs index cfa4a6ad..30481372 100644 --- a/PCK-Studio/Rendering/SkinRenderer.cs +++ b/PCK-Studio/Rendering/SkinRenderer.cs @@ -267,7 +267,6 @@ namespace PckStudio.Rendering private float animationMaxAngleInDegrees = 5f; private bool showWireFrame = false; - private bool autoInflateOverlayParts; private const float DEFAULT_ARM_ROTATION = 5f; @@ -750,7 +749,7 @@ namespace PckStudio.Rendering } CubeMeshCollection cubeMesh = meshStorage[skinBox.Type]; - cubeMesh.AddSkinBox(skinBox, autoInflateOverlayParts && skinBox.IsOverlayPart() ? skinBox.Type == "HEADWEAR" ? OVERLAY_SCALE * 2 : OVERLAY_SCALE : 0f); + cubeMesh.AddSkinBox(skinBox, skinBox.IsOverlayPart() ? skinBox.Type == "HEADWEAR" ? OVERLAY_SCALE * 2 : OVERLAY_SCALE : 0f); } private void OnANIMUpdate() @@ -1105,7 +1104,7 @@ namespace PckStudio.Rendering if (!meshStorage.ContainsKey(box.Type)) continue; - float inflate = autoInflateOverlayParts && box.IsOverlayPart() ? box.Type == "HEADWEAR" ? OVERLAY_SCALE * 2 : OVERLAY_SCALE : 0f; + float inflate = box.IsOverlayPart() ? box.Type == "HEADWEAR" ? OVERLAY_SCALE * 2 : OVERLAY_SCALE : 0f; Cube cube = box.ToCube(inflate); CubeMeshCollection cubeMesh = meshStorage[box.Type]; yield return cube.GetBoundingBox(cubeMesh.GetTransform());