umasteeringgroup / UMA

Unity Multipurpose Avatar
MIT License
737 stars 169 forks source link

No wardrobe loads if loadFilename is set is set but loadFileOnStart is not. #270

Closed FirstGearGames closed 5 years ago

FirstGearGames commented 5 years ago

UMA 2.8.1

Quick code fix. More details:

In DynamicCharacterAvatar under Load/Save Options if you have anything in the LoadFilename but LoadFileOnStart is false nothing is loaded by default. Would make more sense if default wardrobe was loaded in this instance.

//fix bool BuildUsingComponentSettings { get { bool startRecipeEmpty = (loadString == "" && loadFilename == "" && umaRecipe == null);

            if (loadFileOnStart && !startRecipeEmpty)
                return false;
            else
                return true;
        }
    }
Jaimi commented 5 years ago

Added