From f7ee5c326aa1e59d3b940fdc07763ba52ce7cae4 Mon Sep 17 00:00:00 2001 From: Makao1240 <32182799+Makao1240@users.noreply.github.com> Date: Thu, 18 Jul 2024 20:21:51 +0900 Subject: [PATCH] [PE] Fix Collider height being changed on its own just by selecting an item (#82) --- Core.PoseEditor/AMModules/CollidersEditor.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Core.PoseEditor/AMModules/CollidersEditor.cs b/Core.PoseEditor/AMModules/CollidersEditor.cs index 657a390..abe0c3c 100644 --- a/Core.PoseEditor/AMModules/CollidersEditor.cs +++ b/Core.PoseEditor/AMModules/CollidersEditor.cs @@ -1036,8 +1036,6 @@ private void DrawFields(DynamicBoneCollider collider) SetColliderRadius(collider, radius); float height = FloatEditor(collider.m_Height, 2 * collider.m_Radius, Mathf.Max(4f, 4f * collider.m_Radius), "Height\t"); - if (height < collider.m_Radius * 2) - height = collider.m_Radius * 2; if (Mathf.Approximately(height, collider.m_Height) == false) SetColliderHeight(collider, height);