17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 22:30:28 +01:00

fix(track): timbermodel of a track lays switch timbers without sleepers3d in eu07.ini

This commit is contained in:
2026-10-21 15:37:11 +02:00
parent 3c890e4eb9
commit 30cb83584d
3 changed files with 4 additions and 4 deletions

View File

@@ -5884,7 +5884,6 @@ void opengl46_renderer::Render_Sleepers( TTrack *Track )
void opengl46_renderer::Render_Timbers( scene::basic_cell::path_sequence::const_iterator First, scene::basic_cell::path_sequence::const_iterator Last )
{
if( Global.SleeperDistance <= 0.f ) { return; }
if( track_sleepers::timber_model() == nullptr ) { return; }
auto const shadows = ( m_renderpass.draw_mode == rendermode::shadows );
// the distance is taken from the camera of the view, the shadow pass culling against its own frustum