mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 22:07:55 +01:00
0426a44f71
A submodel whose definition breaks off before its transform (no "type:" in its header) is still attached to the tree, without a matrix, and TSubModel::serialize dereferenced that matrix. It is written as -1 now, which the binary loader reads back as no matrix, so the .e3d holds the same tree the .t3d gives. The -e3d mode also runs the log service now. Without it nothing logged during the conversion came out, neither the included files the conversion scripts read from the standard output nor the error that names the broken submodel. A model that loaded nothing ends with exit code 1 and a message instead of a crash.