Project

General

Profile

Bug #26860

In the editor, parts pulled out from inventories forget to enable their partmodules

Added by gotmachine over 3 years ago. Updated about 3 years ago.

Status:
New
Severity:
Low
Assignee:
-
Category:
Editor
Target version:
-
Start date:
12/18/2020
% Done:

0%

Version:
Platform:
Windows
Expansion:
Core Game
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

Doing the following :

  • In the editor, grab a part from the part list, or grab an already placed part
  • Put it into a stock inventory
  • Put it back in the editor

Results in KSP to forget to enable all partmodules on the part (it doesn't set MonoBehaviour.enabled = true), causing any Start()/Update()/FixedUpdate() code to not run.
Note that the KSP OnLoad/OnStart methods are called upon getting the part out of the inventory, so it seems to be an oversight in the initialization code.

Also available in: Atom PDF