Exemplo n.º 1
0
        public override void editing()
        {
            LayerState undo = LayerState.CreateAndCapture();
            String     currentTransparencyState = TransparencyController.ActiveTransparencyState;

            TransparencyController.ActiveTransparencyState = TransparencyState;
            LayerState.timedApply(MedicalConfig.CameraTransitionTime);
            TransparencyController.ActiveTransparencyState = currentTransparencyState;
            TimelineController.LayerController.pushUndoState(undo);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Push a new state onto the undo/redo buffer, will erase anything after the current undo.
 /// This will use the passed state as the undo state and the current muscle position of the scene
 /// as the redo state.
 /// </summary>
 public void pushUndoState(LayerState undoLayers)
 {
     pushUndoState(undoLayers, LayerState.CreateAndCapture());
 }