Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(g_using_smooth_groups)
- {
- F = fs.open_chunk (EB_SmoothGroups);
- R_ASSERT2 (F,"EB_SmoothGroups chunk not found.");
- u32* sm_groups = NULL;
- u32 sm_count = F->length()/sizeof(u32);
- R_ASSERT ( sm_count == lc_global_data()->g_faces().size() );
- sm_groups = xr_alloc<u32>(sm_count);
- F->r (sm_groups, F->length());
- F->close ();
- for(u32 idx=0; idx<sm_count; ++idx)
- lc_global_data()->g_faces()[idx]->sm_group = sm_groups[idx];
- xr_free (sm_groups);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement