17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 02:49:19 +02:00

feat(editor): infrastructure bound to the paths follows their changes

This commit is contained in:
maj00r
2026-10-04 00:14:03 +02:00
parent 7371b18910
commit 8778353b22
15 changed files with 2083 additions and 1 deletions

View File

@@ -510,6 +510,7 @@ state_serializer::deserialize_node( cParser &Input, scene::scratch_data &Scratch
}
scene::Groups.insert( scene::Groups.handle(), traction );
simulation::Region->insert_and_register( traction );
scene::Layers.track( traction, { sourcebegin, Input.TokenEnd() } );
}
else if( nodedata.type == "tractionpowersource" ) {
@@ -656,6 +657,7 @@ state_serializer::deserialize_node( cParser &Input, scene::scratch_data &Scratch
simulation::Region->insert( eventlauncher );
}
}
scene::Layers.track( eventlauncher, { sourcebegin, Input.TokenEnd() } );
}
else if( nodedata.type == "sound" ) {