Changeset 529 for trunk/src/engine
- Timestamp:
- 01/05/17 13:50:41 (8 years ago)
- Location:
- trunk/src/engine
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/default_resource_manager.cc
r520 r529 37 37 m_lua->register_enum( "RND_STEP_3", static_cast<int>( random_dist::STEP_3 ) ); 38 38 m_lua->register_enum( "RND_STEP_4", static_cast<int>( random_dist::STEP_4 ) ); 39 m_lua->register_enum( "RND_ LINEAR", static_cast<int>( random_dist::LINEAR ) );39 m_lua->register_enum( "RND_MLINEAR", static_cast<int>( random_dist::MLINEAR ) ); 40 40 m_lua->register_enum( "RND_MGAUSSIAN", static_cast<int>( random_dist::MGAUSSIAN ) ); 41 41 m_lua->register_enum( "RND_MRGAUSSIAN", static_cast<int>( random_dist::MRGAUSSIAN ) ); -
trunk/src/engine/model_manager.cc
r527 r529 135 135 node->choice = model_node_choice( table.get_unsigned( "choice", false ) ); 136 136 node->chance = table.get_float( "chance", 1.0f ); 137 node->weight = table.get_unsigned( "weight", 1);137 node->weight = static_cast< uint16 >( table.get_unsigned( "weight", 1 ) ); 138 138 node->mesh = cmesh; 139 139 node->attach_id = attach_id; -
trunk/src/engine/particle_engine.cc
r522 r529 454 454 uint32 ecount = info->data->emitter_count; 455 455 if ( ecount == 0 ) return; 456 457 bool local = model.is_identity();458 // if ( !local )459 // {460 // source = vec3( m_model_matrix[3] );461 // orient = mat3( m_model_matrix );462 // }463 456 464 457 for ( uint32 i = 0; i < ecount; ++i ) -
trunk/src/engine/resource_system.cc
r524 r529 44 44 lua::table_guard sub_table( table, i + 1 ); 45 45 string64 id = sub_table.get_string64( "id" ); 46 NV_ASSERT( m_id_hash.find( id ) == m_id_hash.end(), "HASH COLLISION - ", id, " - ", m_id_hash[id]);46 NV_ASSERT( m_id_hash.find( id ) == m_id_hash.end(), "HASH COLLISION" ); 47 47 m_id_hash[id] = id; 48 48 }
Note: See TracChangeset
for help on using the changeset viewer.