You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OnLoad_Finalize() called GetPartPrefabForInternal() to auto-detect which
airlock transform to associate with each EVA hatch. That returns only the
FIRST part registered for a given internal, so its airlockName was written
into the shared prefab and inherited by every other part sharing the same
internal (e.g. USILS.Greenhouse.Inline, sspx-observation-25-1, and
Kosntruction.Workshop.250 all inherit crewCabinInternals' "Airlock" name
even though those parts have no such transform).
Move airlock auto-detection to Hatch.OnAwake(), where this.part is the
actual flight instance, applying the same spatial matching logic as before
but only for that specific hatch instance.
Also remove explicit airlockName = Airlock from docking port HatchConfigs:
those ports add FreeIva/Parts/Airlock to their model to provide an EVA
exit, but FindAirlock can't locate the transform by name (likely because
the instantiated model root gets "(Clone)" appended by Unity). The fallback
to part.airlock correctly finds the tagged transform already, so the named
lookup was just generating noise.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
// attach node auto-detection is deferred to flight time (OnAwake in Hatch.cs)
551
-
// so that each part instance detects against its own nodes, avoiding
544
+
// attach node and airlock auto-detection are deferred to flight time (OnAwake in Hatch.cs)
545
+
// so that each part instance detects against its own nodes/airlocks, avoiding
552
546
// shared-prefab pollution when multiple parts use the same internal
553
547
}
554
548
}
555
549
}
556
550
557
-
// auto-configure airlocks
558
-
// since hatches do not have a defined "out" direction (different hatches are authored in different orientations), we do this in part space (because the airlocks DO have a defined "in" direction)
0 commit comments