Skip to content

Commit

Permalink
[PE] Fix Collider height being changed on its own just by selecting a…
Browse files Browse the repository at this point in the history
…n item (#82)
  • Loading branch information
Makao1240 authored Jul 18, 2024
1 parent b6cb970 commit f7ee5c3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Core.PoseEditor/AMModules/CollidersEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f7ee5c3

Please sign in to comment.