예제 #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;
        }
예제 #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;
            }
        }
예제 #3
0
 public virtual void ApplyTransformActionToSelection(AbstractTransformAction transformAction, ref TransformChangeInfos transformChangeInfos)
 {
 }
예제 #4
0
 public virtual void ApplyTransformActionToPart(AbstractTransformAction transformAction, int part, ref TransformChangeInfos transformChangeInfos)
 {
 }
예제 #5
0
 public override void ApplyTransformActionToSelection(AbstractTransformAction transformAction)
 {
     position = transformAction.NewPos(position);
     UpdateNodePosition();
 }