mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Properly ensure that graphics are established before copying twins
This commit is contained in:
parent
3bdf881533
commit
c93ae89695
2 changed files with 6 additions and 2 deletions
|
@ -94,7 +94,10 @@ namespace RJW_Menstruation
|
||||||
Pawn baby = PawnGenerator.GeneratePawn(request);
|
Pawn baby = PawnGenerator.GeneratePawn(request);
|
||||||
if (baby == null) break;
|
if (baby == null) break;
|
||||||
PregnancyCommon.SetupBabyXenotype(mother, father, baby); // Probably redundant with Biotech post-birth xenotyping
|
PregnancyCommon.SetupBabyXenotype(mother, father, baby); // Probably redundant with Biotech post-birth xenotyping
|
||||||
// baby.Drawer.renderer.graphics.ResolveAllGraphics();
|
// HAR and some xenotype mods don't randomize graphics until it's rendered
|
||||||
|
// So poke it early
|
||||||
|
baby.Drawer.renderer.renderTree.EnsureInitialized(PawnRenderFlags.DrawNow);
|
||||||
|
|
||||||
if (division > 1)
|
if (division > 1)
|
||||||
{
|
{
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
|
|
|
@ -332,7 +332,8 @@ namespace RJW_Menstruation
|
||||||
PregnancyCommon.SetupBabyXenotype(mother, father, baby);
|
PregnancyCommon.SetupBabyXenotype(mother, father, baby);
|
||||||
// HAR and some xenotype mods don't randomize graphics until it's rendered
|
// HAR and some xenotype mods don't randomize graphics until it's rendered
|
||||||
// So poke it early
|
// So poke it early
|
||||||
// baby.Drawer.renderer.graphics.ResolveAllGraphics();
|
baby.Drawer.renderer.renderTree.EnsureInitialized(PawnRenderFlags.DrawNow);
|
||||||
|
|
||||||
if (division > 1)
|
if (division > 1)
|
||||||
{
|
{
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
|
|
Loading…
Reference in a new issue