UnityEditor.AvatarMuscleEditor.UpdateMuscle C# (CSharp) Method

UpdateMuscle() protected method

protected UpdateMuscle ( int muscleId, float min, float max ) : bool
muscleId int
min float
max float
return bool
        protected bool UpdateMuscle(int muscleId, float min, float max)
        {
            Undo.RegisterCompleteObjectUndo(this, "Updated muscle range");
            this.m_MuscleMin[muscleId].floatValue = min;
            this.m_MuscleMax[muscleId].floatValue = max;
            int index = HumanTrait.BoneFromMuscle(muscleId);
            if (index != -1)
            {
                this.m_Modified[index].boolValue = true;
            }
            this.m_FocusedMuscle = muscleId;
            if (base.gameObject != null)
            {
                Animator component = base.gameObject.GetComponent(typeof(Animator)) as Animator;
                component.avatar.SetMuscleMinMax(muscleId, min, max);
            }
            SceneView.RepaintAll();
            return (base.gameObject != null);
        }