|
@@ -790,11 +790,11 @@ void* tnsget_MeshObjectFaceRaw(tnsMeshObject* o, int* r_size, int* r_is_copy){
|
|
|
}
|
|
|
*r_size = i*sizeof(int);
|
|
|
*r_is_copy = 1;
|
|
|
- return arr;
|
|
|
+ return arr;
|
|
|
}
|
|
|
void tnsset_MeshObjectFaceRaw(tnsMeshObject* o, int* data, int s){
|
|
|
if(o->f){
|
|
|
- for(int fi=0;fi<o->totf;fi++){
|
|
|
+ for(int fi=0;fi<o->maxf;fi++){ // ??? due to undo property order, maxf can be != totf, will it have problems?
|
|
|
if(o->f[fi].loop){ free(o->f[fi].loop); o->f[fi].loop=0; }
|
|
|
}
|
|
|
arrFree(&o->f, &o->maxf); o->totf=0;
|