Update UnrealLoader.h

use memcpy instead of = operator for pos copy.
pull/2552/head
Kim Kulling 2019-07-20 10:10:17 +02:00 committed by GitHub
parent f804036cf3
commit 103048ff85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
code/Unreal

View File

@ -127,7 +127,8 @@ inline void CompressVertex(const aiVector3D& v, uint32_t& out)
n.X = (int32_t)v.x;
n.Y = (int32_t)v.y;
n.Z = (int32_t)v.z;
out = t;
::memcpy( &out, &t, sizeof(int32_t));
//out = t;
}
// UNREAL vertex decompression