X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Fmaterial%2Fmatlib.cxx;h=5ce238b5355da1c6f0407c8102a34e777579547c;hb=21c64dd60fbecf31eb2ccbf99b8fcbfde8892d14;hp=83074ca00c4f979f654470870a41cc5990050698;hpb=f30c4720ae6de72a9b6eab219ebde0b07a517ede;p=simgear.git diff --git a/simgear/scene/material/matlib.cxx b/simgear/scene/material/matlib.cxx index 83074ca0..5ce238b5 100644 --- a/simgear/scene/material/matlib.cxx +++ b/simgear/scene/material/matlib.cxx @@ -175,7 +175,7 @@ static int gen_taxiway_dir_light_map( int r, int g, int b, int alpha ) { // Load a library of material properties -bool SGMaterialLib::load( const string &fg_root, const string& mpath ) { +bool SGMaterialLib::load( const string &fg_root, const string& mpath, const char *season ) { SGPropertyNode materials; @@ -192,7 +192,7 @@ bool SGMaterialLib::load( const string &fg_root, const string& mpath ) { for (int i = 0; i < nMaterials; i++) { const SGPropertyNode * node = materials.getChild(i); if (!strcmp(node->getName(), "material")) { - SGMaterial *m = new SGMaterial( fg_root, node ); + SGMaterial *m = new SGMaterial( fg_root, node, season ); vectornames = node->getChildren("name"); for ( unsigned int j = 0; j < names.size(); j++ ) {