move cull fix above FixSectoredComponent or else it nres

This commit is contained in:
JohnCorby 2024-03-23 14:38:11 -07:00
parent f490238d60
commit fd3c5975eb

View File

@ -140,9 +140,6 @@ namespace NewHorizons.Builder.Props
}
else
{
FixSectoredComponent(component, sector, existingSectors);
}
// Fix cull groups only when not from an asset bundle (because then they're there on purpose!)
// keepLoaded should remove existing groups
// renderers/colliders get enabled later so we dont have to do that here
@ -152,6 +149,9 @@ namespace NewHorizons.Builder.Props
continue;
}
FixSectoredComponent(component, sector, existingSectors);
}
// Asset bundle is a real string -> Object loaded from unity
// If they're adding dialogue we have to manually register the xml text
if (isFromAssetBundle && component is CharacterDialogueTree dialogue)