blowfishpro / B9PartSwitch

A Kerbal Space Program plugin designed to implement switching of part meshes, resources, and nodes
GNU Lesser General Public License v3.0
50 stars 33 forks source link

Attaching mesh-switched parts with EVA construction cause Kraken events #238

Open gotmachine opened 1 year ago

gotmachine commented 1 year ago

Setup :

Reproduction steps :

Note that reproducing can take a few tries, it doesn't always happen. And while it seems more frequent when the part is switched to a non-default subtype, it's also occasionally reproducible with the default subtype.

Excerpt from log entries when this happen :

[LOG 13:58:13.246] Event Weld Started not assigned to state Ladder (Idle)
[LOG 13:58:13.248] [Part truss-micro-02] [ModuleB9PartSwitch 'meshSwitch'] Switched subtype to Triangular
[LOG 13:58:13.281] DragCubeSystem: Creating drag cubes for part 'truss-micro-02'

I haven't done extensive testing or investigations, so I can't really offer much hindsight. While this seems something related to collider/rigidbody interactions, this could maybe have something to do with mass switching, hard to say.

As shown in this video, some parts also seem to be instantiated with all models active at once. I didn't reproduce that, but I got confirmation of this by some users.