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