예제 #1
0
    private void CheckForModifications()
    {
        if (modified == false)
        {
            if (packer.Modified == true)
            {
                modified = true;
            }
            else if (modified == false && starfieldMultiMesh.Count == 0)
            {
                modified = true;
            }
            else if (modified == false && SGT_Helper.ArrayFilled(meshes) == false)
            {
                modified = true;
            }
            else if (starVariants != null)
            {
                foreach (var variant in starVariants)
                {
                    if (variant != null)
                    {
                        if (variant.Modified == true)
                        {
                            modified = true;

                            break;
                        }
                    }
                }
            }
        }
    }