- Timestamp:
- 02/09/17 17:50:17 (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/engine/model_manager.hh
r544 r546 103 103 // TODO: change to resource 104 104 string32 ragdoll_id; 105 transform root;106 105 shash64 attach; 107 106 flags< 32 > flags; … … 179 178 if ( !m ) return result; 180 179 result.attach = m->attach; 181 result.local = m->root;182 180 result.flags = m->flags; 183 181 result.count = 0; -
trunk/src/engine/model_manager.cc
r544 r546 20 20 gm->flags = table["flags"].as< flags<32> >(); 21 21 gm->attach = table["attach"].get_shash64(); 22 gm->root.set_position( table["root_position"].as<vec3>() );23 gm->root.set_orientation( vec4_to_quat( table["root_orientation"].as<vec4>( vec4(0.0f,0.0f,0.0f,1.0f) ) ) );24 22 25 23 resource< mesh_data > def_data;
Note: See TracChangeset
for help on using the changeset viewer.