From b99a5465b03fbef18e674ed72372a1059cca2197 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 15 Feb 2008 17:54:23 +0000 Subject: [PATCH] Csaba HALASZ: implement conditional (e.g. seasonal) texture loading at startup --- src/Main/fg_init.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 4e8266478..38cd53071 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -1614,7 +1614,8 @@ bool fgInitSubsystems() { SGPath mpath( globals->get_fg_root() ); mpath.append( "materials.xml" ); string season = fgGetString("/sim/startup/season", "summer"); - if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str(), season.c_str()) ) { + if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str(), season.c_str(), + globals->get_props()) ) { SG_LOG( SG_GENERAL, SG_ALERT, "Error loading material lib!" ); exit(-1); } -- 2.39.5