Kerbal Inventory System (KIS)

Kerbal Inventory System (KIS)

1M Downloads

Exception when moving part in the editor

ihsoft opened this issue ยท 0 comments

commented
  1. Attach a part to the assembly in the editor.
  2. Open inventory in drag-n-drop the attached part into it.

In spite of the part is correctly added to the inventory, an exception is thrown:

170820T021545.195 [EXCEPTION] [Part.disconnect] NullReferenceException: Object reference not set to an instance of an object
   at Part.disconnect (Boolean controlledSeparation)
   at Part.decouple (Single breakForce)
   at KIS.KIS_Shared+<AsyncDecoupleAssembly>d__d.MoveNext ()
   at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress)
   at UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
   at KIS.ModuleKISInventory:ConsumePartFromScene(Part, OnPartReady, OnPartReady)
   at KIS.ModuleKISInventory:GuiHandleEmptySlot(Rect, Int32)
   at KIS.ModuleKISInventory:GuiInventory()
   at KIS.ModuleKISInventory:GuiMain(Int32)
   at UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)