18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 22:07:55 +01:00
Files
maszyna/model
maj00r 3f206105b8 fix(editor): a part taken out keeps the references after it; holds and the cab end with the editor
After review of #551:

- The components the data of others points at, which a removal moves back, are all of them now: besides the bindings of a
  channel and the light sources of a light slot, the sockets of a spring (socket_a, socket_b), of the ends of a chain (end_a,
  end_b) and of a model reference, and the properties whose value is a component. A node whose component one of these points
  at isn't taken out; what the node's own components point at among themselves doesn't keep it.
- The items of the vertex groups of other meshes, absolute vertex indices, move back over the vertices cut out with a part
  (the first vertex of each pair of a group of ranges).
- A component aimed at a mesh moves back with the meshes after a removed one, and a mesh a component is aimed at keeps its node.
- The holds of the model panel on the lamps, the hooks and the pantographs are let go of when the editor is left and when the
  panel turns to another vehicle: a pantograph held down no longer cuts the power of the vehicle driven after F11.
- "Get in the cab" no longer changes the vehicle the player drives: the one driven before is driven again as the editor is left.
- The window of a model that can be imported says that a later update of the .e3d or .t3d doesn't reach the game while the
  .eu07m is there.
- A model file with a space in its name isn't put in: the scenery line would read it as another.

Unit tests for the vertex groups, the mesh targets and the sockets in the data of the components.
2026-11-30 21:27:36 +01:00
..