Ignore:
Timestamp:
10/17/16 23:19:19 (9 years ago)
Author:
epyon
Message:
  • attach depth
  • minor fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine/model_manager.cc

    r516 r523  
    5757
    5858        if ( table.is_string( "material" ) )
    59                 cmaterial = m_rm->get< material >( table.get_string128( "material" ) );
     59        {
     60                nv::string128 mat_id( table.get_string128( "material" ) );
     61                cmaterial = m_rm->get< material >( mat_id );
     62                if ( !cmaterial )
     63                        NV_LOG_ERROR( "Can't load material : ", mat_id );
     64        }
    6065
    6166        if ( table.is_string( "tag" ) )
Note: See TracChangeset for help on using the changeset viewer.