Add support for seasonal textures: --prop:/sim/startup/season=winter for now.
This commit is contained in:
parent
694426c103
commit
e6e618332f
1 changed files with 2 additions and 1 deletions
|
@ -1598,7 +1598,8 @@ bool fgInitSubsystems() {
|
|||
|
||||
SGPath mpath( globals->get_fg_root() );
|
||||
mpath.append( "materials.xml" );
|
||||
if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str()) ) {
|
||||
string season = fgGetString("/sim/startup/season", "summer");
|
||||
if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str(), season.c_str()) ) {
|
||||
SG_LOG( SG_GENERAL, SG_ALERT, "Error loading material lib!" );
|
||||
exit(-1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue