mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 12:57:06 +01:00
af3815eee3
"Remove this part" (Del) in the Models mode takes out any part without parts under it which nothing else in the model points at (an animation, a light slot, a skin): with its components, its transform and its own mesh. eu07m::remove_node now takes such a node with its geometry: its primitives go, and their vertices and indices leave the streams where no other primitive shares them. The primitives after them move back, and so do the meshes, the vertex groups and the references to the geometry store. A part whose mesh another node draws too, or whose mesh has vertex groups, stays. Ctrl+Z puts the part back and picks it again. So the flat glowing patch under a lamp post of E3D (placek) is taken out and a real light source put in the lamp instead. Unit tests take out a part with geometry, check the streams and the primitive moved into its place, write and read the model back, and keep a part whose mesh is shared.