From 3bdf67bc41067893d2baa233dc1ecc53bb5d9736 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Tue, 30 Jul 2024 22:09:21 +0200 Subject: [PATCH] ModelIporter - Rename 'GetPivot' to 'GetSkinBoxPivot' --- PCK-Studio/Internal/ModelImporter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PCK-Studio/Internal/ModelImporter.cs b/PCK-Studio/Internal/ModelImporter.cs index 301bd338..f41bebf4 100644 --- a/PCK-Studio/Internal/ModelImporter.cs +++ b/PCK-Studio/Internal/ModelImporter.cs @@ -226,7 +226,7 @@ namespace PckStudio.Internal { outliners.Add(box.Type, new Outline(box.Type) { - Origin = GetPivot(box.Type) + offset + Origin = GetSkinBoxPivot(box.Type) + offset }); } @@ -498,7 +498,7 @@ namespace PckStudio.Internal { Bone bone = new Bone(box.Type) { - Pivot = GetPivot(box.Type) + offset + Pivot = GetSkinBoxPivot(box.Type) + offset }; bones.Add(box.Type, bone); } @@ -658,7 +658,7 @@ namespace PckStudio.Internal return Vector3.Zero; } - private static Vector3 GetPivot(string partName) + private static Vector3 GetSkinBoxPivot(string partName) { return TransformSpace(ModelPartSpecifics.GetPositioningInfo(partName).Pivot, Vector3.Zero, Vector3.UnitY) + (24f * Vector3.UnitY); }