KSPModdingLibs / KSPCommunityFixes

Community patches for bugs in the KSP codebase
49 stars 17 forks source link

ModuleAnimateGeneric crewcapacity/IVA patch should not apply in the editor #205

Closed JonnyOThan closed 6 months ago

JonnyOThan commented 6 months ago
[EXC 20:31:55.215] NullReferenceException: Object reference not set to an instance of an object
    InternalModel.Initialize (Part p) (at <4b449f2841f84227adfaad3149c8fdba>:0)
    Part.SpawnIVA () (at <4b449f2841f84227adfaad3149c8fdba>:0)
    KSPCommunityFixes.BugFixes.ModuleAnimateGenericCrewModSpawnIVA.OnCrewCapacityChanged (Part part, System.Int32 newCrewCapacity) (at <3eabfe001b54477fa1107e2a2ab315ee>:0)
    (wrapper dynamic-method) ModuleAnimateGeneric.ModuleAnimateGeneric.CheckCrewState_Patch0(ModuleAnimateGeneric)
    ModuleAnimateGeneric.AnimationHandler () (at <4b449f2841f84227adfaad3149c8fdba>:0)
    ModuleAnimateGeneric.FixedUpdate () (at <4b449f2841f84227adfaad3149c8fdba>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

This causes all sorts of problems...