Call ResolveAllGraphics unconditionally for babies. Also copy skinColorOverride for twins

This commit is contained in:
lutepickle 2023-01-10 05:46:16 -08:00
parent d34c96315a
commit 93566b5fa3
2 changed files with 7 additions and 5 deletions

View File

@ -98,7 +98,6 @@ namespace RJW_Menstruation
{
if (i == 0)
{
if (baby.IsHAR())
baby.Drawer.renderer.graphics.ResolveAllGraphics();
firstbaby = baby;
request.FixedGender = baby.gender;
@ -114,6 +113,7 @@ namespace RJW_Menstruation
baby.story.hairDef = firstbaby.story.hairDef;
baby.story.bodyType = firstbaby.story.bodyType;
baby.story.furDef = firstbaby.story.furDef;
baby.story.skinColorOverride = firstbaby.story.skinColorOverride;
}
if (baby.genes != null)

View File

@ -335,7 +335,8 @@ namespace RJW_Menstruation
{
if (i == 0)
{
if (baby.IsHAR()) // Have HAR determine the first baby's properties
// HAR and some xenotype mods don't randomize graphics until it's rendered
// So poke it early
baby.Drawer.renderer.graphics.ResolveAllGraphics();
firstbaby = baby;
request.FixedGender = baby.gender;
@ -351,6 +352,7 @@ namespace RJW_Menstruation
baby.story.hairDef = firstbaby.story.hairDef;
baby.story.bodyType = firstbaby.story.bodyType;
baby.story.furDef = firstbaby.story.furDef;
baby.story.skinColorOverride = firstbaby.story.skinColorOverride;
}
if (baby.genes != null && ModsConfig.BiotechActive)