Disable mirroring on axis and flip faces

This commit is contained in:
Yakim3396 2020-12-08 19:57:05 +03:00
parent 3640d875f6
commit e9cab14ae6

View file

@ -97,7 +97,7 @@ static void load_translated(aim_vector3<float> &v, const buffer &b)
READ(b, v.y); READ(b, v.y);
READ(b, v.x); READ(b, v.x);
READ(b, v.z); READ(b, v.z);
v.y = -v.y; //v.y = -v.y;
// after load we have eMayaYUp // after load we have eMayaYUp
} }
@ -140,7 +140,12 @@ void vertex::load(const buffer &b, uint32_t flags)
void face::load(const buffer &b) void face::load(const buffer &b)
{ {
READ(b, vertex_list); uint16_t lvertex_list[3];
READ(b, lvertex_list);
vertex_list[2] = lvertex_list[0];
vertex_list[1] = lvertex_list[1];
vertex_list[0] = lvertex_list[2];
} }
static String print_float(double v) static String print_float(double v)