(2023-02-02, 19:02)Roland Melkert Wrote: I think what's happening here is the line without 0 // is demoted to 'white space' internally.
Then when you want to toggle it back a white space line is essentially empty no matter it's original source.
Exceptions are 'garbage' lines loaded at file load, those will be preserved.
This is one of those situations that was never an issue in the pre scripting era of the program.
I will try to improve it, but this really shows the need of a whole new core loading system (LDCad 2.0).
Makes sense, since if you uncomment a comment you're left with an invalid line.
Theoretically I could probably put in a check to make sure the uncommented line is still valid LDraw code, but I'm not sure I'll bother. I'd probably just avoid uncommenting comments (no use case for it anyway, other then as part of a shift-selected block of lines perhaps).
At least until LDCad 2.0, anyway.