Exemple #1
0
        public override void Update()
        {
            base.Update();

            if (!IsInMode)
            {
                return;
            }

            _State.HandleEvent();

            // We reset everything to push to the UNDO stack.
            ResetRotations();
            Undo.RecordObjects(_Selected, "Rotate");

            _State.DrawLines(_AvgPos, _Selected);
            CalculateRotation(_OriginalMousePos, Event.current.mousePosition);
        }
        public override void Update()
        {
            base.Update();

            if (!IsInMode)
            {
                return;
            }

            _State.HandleEvent();

            // We reset everything to push to the UNDO stack.
            ResetScale();
            Undo.RecordObjects(_Selected, "Scale");

            _State.DrawLines(_AvgPos, _Selected);
            CalculateScale();
        }
Exemple #3
0
        public override void Update()
        {
            base.Update();

            if (!IsInMode)
            {
                return;
            }

            _State.HandleEvent();

            // We reset everything to push to the UNDO stack.
            UpdatePositions(_OriginalAvgPos);
            Undo.RecordObjects(_Selected, "Translate");

            _State.DrawLines(_OriginalAvgPos, _Selected);

            CalculatePosition();
        }