UnityEditor.ModelImporterModelEditor.ScaleAvatar C# (CSharp) Method

ScaleAvatar() private method

private ScaleAvatar ( ) : void
return void
        private void ScaleAvatar()
        {
            UnityEngine.Object[] targets = base.targets;
            for (int i = 0; i < targets.Length; i++)
            {
                object obj2 = targets[i];
                float globalScale = (obj2 as ModelImporter).globalScale;
                float floatValue = this.m_GlobalScale.floatValue;
                if (((globalScale != floatValue) && (floatValue != 0f)) && (globalScale != 0f))
                {
                    float num4 = floatValue / globalScale;
                    SerializedProperty property = base.serializedObject.FindProperty(AvatarSetupTool.sSkeleton);
                    for (int j = 0; j < property.arraySize; j++)
                    {
                        SerializedProperty arrayElementAtIndex = property.GetArrayElementAtIndex(j);
                        arrayElementAtIndex.FindPropertyRelative(AvatarSetupTool.sPosition).vector3Value = (Vector3) (arrayElementAtIndex.FindPropertyRelative(AvatarSetupTool.sPosition).vector3Value * num4);
                    }
                }
            }
        }