mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Set original parent
This commit is contained in:
parent
53cf5f5eee
commit
adf8f0b182
@ -243,6 +243,9 @@ namespace NewHorizons.Handlers
|
||||
|
||||
var ao = planetObject.GetComponent<NHAstroObject>();
|
||||
|
||||
var solarSystemRoot = SearchUtilities.Find("SolarSystemRoot").transform;
|
||||
planetObject.GetComponent<OWRigidbody>()._origParent = ao.IsDimension ? solarSystemRoot.Find("Dimensions") : solarSystemRoot;
|
||||
|
||||
if (!ao.IsDimension) _dict.Add(ao, body);
|
||||
else _dimensions.Add(ao, body);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user