void map_mesh_whole_uv(map_type *map,int mesh_idx) { int n,npoly; map_mesh_type *mesh; mesh=&map->mesh.meshes[mesh_idx]; npoly=mesh->npoly; for (n=0; n!=npoly; n++) { map_mesh_whole_poly_uv(map,mesh_idx,n); } }
void piece_whole_uvs(bool poly_only) { int n,sel_count, type,mesh_idx,poly_idx; sel_count=select_count(); for (n=0;n!=sel_count;n++) { select_get(n,&type,&mesh_idx,&poly_idx); if (type!=item_map_mesh) continue; if (poly_only) { map_mesh_whole_poly_uv(&map,mesh_idx,poly_idx); } else { map_mesh_whole_uv(&map,mesh_idx); } view_vbo_mesh_rebuild(mesh_idx); } }