Bug fixes

- Fixed issue where animation would not evaluate the clip percentage correctly
- Fixed pawn race selection drop down not updating
- Fixed issue that was stopping animations with floating points in integer fields from loading
This commit is contained in:
AbstractConcept 2022-10-31 21:19:52 -05:00
parent bb2cc29393
commit 270c4cf55b
105 changed files with 166 additions and 166 deletions

View file

@ -89,14 +89,17 @@ namespace RimWorldAnimationStudio
public void UpdateRaceDropdown()
{
raceDropdown.ClearOptions();
int index = raceDropdown.value;
raceDropdown.ClearOptions();
IEnumerable<string> optionsList = DefaultTags.defNames.Concat(CustomTags.defNames);
foreach (string defName in optionsList)
{ raceDropdown.options.Add(new Dropdown.OptionData(defName)); }
raceDropdown.value = Mathf.Clamp(index, 0, raceDropdown.options.Count - 1);
raceDropdown.captionText.text = raceDropdown.options[raceDropdown.value].text;
UpdateGUI();
}
public void UpdateGUI()