Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if(g_using_smooth_groups)
  2. {
  3. F = fs.open_chunk (EB_SmoothGroups);
  4.  
  5. R_ASSERT2 (F,"EB_SmoothGroups chunk not found.");
  6.  
  7. u32* sm_groups = NULL;
  8. u32 sm_count = F->length()/sizeof(u32);
  9.  
  10. R_ASSERT ( sm_count == lc_global_data()->g_faces().size() );
  11. sm_groups = xr_alloc<u32>(sm_count);
  12. F->r (sm_groups, F->length());
  13. F->close ();
  14.  
  15. for(u32 idx=0; idx<sm_count; ++idx)
  16. lc_global_data()->g_faces()[idx]->sm_group = sm_groups[idx];
  17.  
  18. xr_free (sm_groups);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement