Changeset 539 for trunk/src/engine/material_manager.cc
- Timestamp:
- 01/24/17 17:55:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/material_manager.cc
r535 r539 61 61 material* m = new material; 62 62 63 if ( table .is_string( "path") )63 if ( table["path"].is_string() ) 64 64 { 65 m->id = table .get_string128( "id");66 string128 path = table .get_string128( "path");65 m->id = table["id"].get_string128(); 66 string128 path = table["path"].get_string128(); 67 67 for ( uint32 i = 0; i < 5; ++i ) 68 68 m->paths[i] = path; … … 85 85 else 86 86 { 87 m->paths[ TEX_DIFFUSE ] = table.get_string128( "diffuse");88 m->paths[ TEX_NORMAL ] = table.get_string128( "normal");89 m->paths[ TEX_METALLIC ] = table.get_string128( "metallic");90 m->paths[ TEX_ROUGHNESS] = table .get_string128( "roughness");91 m->paths[ TEX_EMISSIVE ] = table .get_string128( "emissive");87 m->paths[ TEX_DIFFUSE ] = table[ "diffuse" ].get_string128(); 88 m->paths[ TEX_NORMAL ] = table[ "normal" ].get_string128(); 89 m->paths[ TEX_METALLIC ] = table[ "metallic" ].get_string128(); 90 m->paths[ TEX_ROUGHNESS] = table[ "roughness" ].get_string128(); 91 m->paths[ TEX_EMISSIVE ] = table[ "emissive" ].get_string128(); 92 92 } 93 93 add( id, m );
Note: See TracChangeset
for help on using the changeset viewer.