|
@@ -864,7 +864,7 @@ void* tnsget_MeshObjectFaceRaw(tnsMeshObject* o, int* r_size, int* r_is_copy){
|
|
arr[i]=o->f[f].looplen; i++;
|
|
arr[i]=o->f[f].looplen; i++;
|
|
arr[i]=o->f[f].flags; i++;
|
|
arr[i]=o->f[f].flags; i++;
|
|
arr[i]=o->f[f].mat; i++;
|
|
arr[i]=o->f[f].mat; i++;
|
|
- float* nm=(void*)&arr[i]; tnsVectorSet2v(nm,o->f[f].n); i+=3;
|
|
|
|
|
|
+ float* nm=(void*)&arr[i]; tnsVectorSet3v(nm,o->f[f].n); i+=3;
|
|
for(int l=0;l<o->f[f].looplen;l++){
|
|
for(int l=0;l<o->f[f].looplen;l++){
|
|
arr[i]=o->f[f].loop[l]; i++;
|
|
arr[i]=o->f[f].loop[l]; i++;
|
|
}
|
|
}
|
|
@@ -888,7 +888,7 @@ void tnsset_MeshObjectFaceRaw(tnsMeshObject* o, int* data, int s){
|
|
f->looplen=data[i]; i++;
|
|
f->looplen=data[i]; i++;
|
|
f->flags=data[i]; i++;
|
|
f->flags=data[i]; i++;
|
|
f->mat=data[i]; i++;
|
|
f->mat=data[i]; i++;
|
|
- float* nm=(void*)&data[i]; tnsVectorSet2v(f->n,nm); i+=3;
|
|
|
|
|
|
+ float* nm=(void*)&data[i]; tnsVectorSet3v(f->n,nm); i+=3;
|
|
f->loop=calloc(1,sizeof(int)*f->looplen);
|
|
f->loop=calloc(1,sizeof(int)*f->looplen);
|
|
for(int li=0;li<f->looplen;li++){
|
|
for(int li=0;li<f->looplen;li++){
|
|
f->loop[li]=data[i]; i++;
|
|
f->loop[li]=data[i]; i++;
|