Fix face mirroring use std::swap

This commit is contained in:
Yakim3396 2020-12-08 20:46:25 +03:00
parent e9cab14ae6
commit 77a4319ad0

View file

@ -140,12 +140,8 @@ void vertex::load(const buffer &b, uint32_t flags)
void face::load(const buffer &b) void face::load(const buffer &b)
{ {
uint16_t lvertex_list[3]; READ(b, vertex_list);
READ(b, lvertex_list); std::swap(vertex_list[0], vertex_list[2]);
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)