public static EventType EndManipulationHandling()
{
EventType eventType = TransformManipulator.EndEventCheck();
if (eventType == EventType.MouseDown)
{
TransformManipulator.RecordMouseDownState(Selection.transforms);
TransformManipulator.s_StartHandlePosition = Tools.handlePosition;
TransformManipulator.s_StartLocalHandleOffset = Tools.localHandleOffset;
if (TransformManipulator.s_LockHandle)
{
Tools.LockHandlePosition();
}
Tools.LockHandleRectRotation();
}
else if (TransformManipulator.s_MouseDownState != null && (eventType == EventType.MouseUp || GUIUtility.hotControl != TransformManipulator.s_HotControl))
{
TransformManipulator.s_MouseDownState = null;
if (TransformManipulator.s_LockHandle)
{
Tools.UnlockHandlePosition();
}
Tools.UnlockHandleRectRotation();
ManipulationToolUtility.DisableMinDragDifference();
}
return(eventType);
}