mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-15 01:43:25 +00:00
Fix face mirroring use std::swap
This commit is contained in:
parent
e9cab14ae6
commit
77a4319ad0
1 changed files with 2 additions and 6 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue