From fdc4f70dc85b8c4a09350f920fdc43381b5b8007 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Mon, 12 Aug 2024 20:42:22 +0200 Subject: [PATCH] SkinModelImporter - Fix 'GetSkinBoxPivot' function --- PCK-Studio/Internal/SkinModelImporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCK-Studio/Internal/SkinModelImporter.cs b/PCK-Studio/Internal/SkinModelImporter.cs index 5d0d3bc3..75714c96 100644 --- a/PCK-Studio/Internal/SkinModelImporter.cs +++ b/PCK-Studio/Internal/SkinModelImporter.cs @@ -510,7 +510,7 @@ namespace PckStudio.Internal private static Vector3 GetSkinBoxPivot(string partName) { - return TransformSpace(ModelPartSpecifics.GetPositioningInfo(partName).Pivot, Vector3.Zero, Vector3.UnitY) + (24f * Vector3.UnitY); + return TransformSpace(ModelPartSpecifics.GetPositioningInfo(partName).Pivot, Vector3.Zero, new Vector3(1, 1, 0)) + (24f * Vector3.UnitY); } private static Vector3 TranslateToInternalPosition(string boxType, Vector3 origin, Vector3 size, Vector3 translationUnit)