KSP-RO / ProceduralParts

A continuation of StretchySRBs, which is a continuation of StretchyTanks
71 stars 79 forks source link

Placing Proc SRB in symmetry mode throws NullReferenceException #301

Closed StonesmileGit closed 2 years ago

StonesmileGit commented 2 years ago

Entire exception in the log;

[EXC 23:55:50.042] NullReferenceException
    UnityEngine.Transform.get_position () <0x184d2839600 + 0x0006a> in <5aeafee3fea24f37abd1315553f2cfa6>:0
    ProceduralParts.ProceduralSRB.MoveBellAndBottomNode () (at <6208594303ec46dab9531e652f9a02e0>:0)
    ProceduralParts.ProceduralSRB.OnWasCopied (PartModule copyPartModule, System.Boolean asSymCounterpart) (at <6208594303ec46dab9531e652f9a02e0>:0)
    Part.OnWasCopied (Part newPart, System.Boolean asSymCounterpart) (at <c1858a3f77504bd1aaa946fdccf84670>:0)
    EditorLogic.createSymmetry (System.Int32 mode, EditorLogic+Attachment attach) (at <c1858a3f77504bd1aaa946fdccf84670>:0)
    EditorLogic.<SetupFSM>b__195_50 () (at <c1858a3f77504bd1aaa946fdccf84670>:0)
    KerbalFSM.UpdateFSM () (at <c1858a3f77504bd1aaa946fdccf84670>:0)
    EditorLogic.Update () (at <c1858a3f77504bd1aaa946fdccf84670>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
StonesmileGit commented 2 years ago

The issue was introduced by commit https://github.com/KSP-RO/ProceduralParts/commit/10b32eb12f5ecbe9e7f28950023c18c5e730b4ba