mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 04:19:19 +02:00
virtual slider mouse input mode, minor refactoring, minor bug fixes
This commit is contained in:
@@ -179,7 +179,7 @@ TTrack * TTrack::Create400m(int what, double dx)
|
||||
trk->Segment->Init( Math3D::vector3( -dx, 0, 0 ), Math3D::vector3( -dx, 0, 400 ), 10.0, 0, 0 ); // prosty
|
||||
trk->location( glm::dvec3{ -dx, 0, 200 } ); //środek, aby się mogło wyświetlić
|
||||
simulation::Paths.insert( trk );
|
||||
simulation::Region->insert_path( trk, scene::scratch_data() );
|
||||
simulation::Region->insert( trk );
|
||||
return trk;
|
||||
};
|
||||
|
||||
@@ -273,11 +273,11 @@ TTrack * TTrack::NullCreate(int dir)
|
||||
// trzeba jeszcze dodać do odpowiedniego segmentu, aby się renderowały z niego pojazdy
|
||||
trk->location( glm::dvec3{ 0.5 * ( p1 + p2 ) } ); //środek, aby się mogło wyświetlić
|
||||
simulation::Paths.insert( trk );
|
||||
simulation::Region->insert_path( trk, scene::scratch_data() );
|
||||
simulation::Region->insert( trk );
|
||||
if( trk2 ) {
|
||||
trk2->location( trk->location() ); // ten sam środek jest
|
||||
simulation::Paths.insert( trk2 );
|
||||
simulation::Region->insert_path( trk2, scene::scratch_data() );
|
||||
simulation::Region->insert( trk2 );
|
||||
}
|
||||
return trk;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user