Exemplo n.º 1
0
        private void clearDragTarget()
        {
            if (poseStartPosition != null)
            {
                //Only record undo if we moved far enough
                if (travelTracker.TraveledOverLimit)
                {
                    musclePositionController.pushUndoState(poseStartPosition);
                }
                poseStartPosition = null;
            }

            if (currentHandler != null)
            {
                currentHandler.posingEnded(activeModes);
                currentHandler = null;
            }

            if (dragControl.TargetBone != null)
            {
                dragControl.TargetBone.Pinned = repinBone;
            }

            ikScene.removeExternalControl(dragControl);
            dragControl.TargetBone = null;
        }
Exemplo n.º 2
0
        private void resetButton_MouseButtonClick(object sender, EventArgs e)
        {
            musclePositionController.pushUndoState(new MusclePosition(true), musclePositionController.BindPosition);

            musclePositionController.timedBlend(musclePositionController.BindPosition, MedicalConfig.CameraTransitionTime);
        }