LockHandleRectRotation() static private method

static private LockHandleRectRotation ( ) : void
return void
        public static EventType EndManipulationHandling()
        {
            EventType usedEvent = EndEventCheck();

            if (usedEvent == EventType.MouseDown)
            {
                RecordMouseDownState(Selection.transforms);
                s_StartHandlePosition    = Tools.handlePosition;
                s_PreviousHandlePosition = s_StartHandlePosition;
                s_StartLocalHandleOffset = Tools.localHandleOffset;
                if (s_LockHandle)
                {
                    Tools.LockHandlePosition();
                }
                Tools.LockHandleRectRotation();
            }
            else if (s_MouseDownState != null && (usedEvent == EventType.MouseUp || GUIUtility.hotControl != s_HotControl))
            {
                s_StartHandleRotation = Tools.handleRotation;
                s_MouseDownState      = null;
                if (s_LockHandle)
                {
                    Tools.UnlockHandlePosition();
                }
                Tools.UnlockHandleRectRotation();
                ManipulationToolUtility.DisableMinDragDifference();
            }

            return(usedEvent);
        }
        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);
        }