parent
60750161d5
commit
7a01061c3e
|
@ -5474,7 +5474,8 @@ unsigned char *m3d_save(m3d_t *model, int quality, int flags, unsigned int *size
|
||||||
}
|
}
|
||||||
out = _m3d_addidx(out, sk_s, vrtx[i].data.skinid);
|
out = _m3d_addidx(out, sk_s, vrtx[i].data.skinid);
|
||||||
}
|
}
|
||||||
memcpy(length, &(uint32_t)((uintptr_t)out - (uintptr_t)((uint8_t *)h + len)), sizeof(uint32_t));
|
uint32_t v = (uint32_t)((uintptr_t)out - (uintptr_t)((uint8_t *)h + len));
|
||||||
|
memcpy(length, &v, sizeof(uint32_t));
|
||||||
//*length = (uint32_t)((uintptr_t)out - (uintptr_t)((uint8_t *)h + len));
|
//*length = (uint32_t)((uintptr_t)out - (uintptr_t)((uint8_t *)h + len));
|
||||||
out = NULL;
|
out = NULL;
|
||||||
len += *length;
|
len += *length;
|
||||||
|
|
Loading…
Reference in New Issue