Advertisement
Benji23245

Untitled

Oct 16th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. using std::vector2;
  2.  
  3. vector2<NJS_MATERIAL *> materials;
  4.  
  5. //To animate Super/Hyper Sonic
  6. void processobject(NJS_OBJECT *obj)
  7. {
  8. do
  9. {
  10. if (obj->basicdxmodel)
  11. {
  12. NJS_MODEL_SADX *mdl = obj->basicdxmodel;
  13. for (int i = 0; i < mdl->nbMat; i++)
  14. if (mdl->mats[i].attr_texId == 34)
  15. materials.push_back(&mdl->mats[i]);
  16. }
  17. if (obj->child)
  18. processobject(obj->child);
  19. obj = obj->sibling;
  20. } while (obj);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement