Example #1
0
        public void StartTransformAction(AbstractTransformAction transformAction, IRevertable revertable = null)
        {
            if (CurrentAction != null || SelectionTransformAction != NoAction)
            {
                return;
            }

            actionStartCamTarget = control.CameraTarget;

            if (revertable != null)
            {
                BeginUndoCollection();
                AddToUndo(revertable);
            }


            SelectionTransformAction = transformAction;
        }
Example #2
0
        public void StartTransformAction(AbstractTransformAction transformAction, int part = -1, IRevertable revertable = null)
        {
            if (revertable != null)
            {
                BeginUndoCollection();
                AddToUndo(revertable);
            }

            if (part != -1)
            {
                HoveredPart     = part;
                ExclusiveAction = transformAction;
            }
            else
            {
                CurrentAction = transformAction;
            }
        }
 public virtual void ApplyTransformActionToSelection(AbstractTransformAction transformAction, ref TransformChangeInfos transformChangeInfos)
 {
 }
Example #4
0
 public virtual void ApplyTransformActionToPart(AbstractTransformAction transformAction, int part, ref TransformChangeInfos transformChangeInfos)
 {
 }
Example #5
0
 public override void ApplyTransformActionToSelection(AbstractTransformAction transformAction)
 {
     position = transformAction.NewPos(position);
     UpdateNodePosition();
 }