Skip to content

Commit

Permalink
Update UnrealLoader.h
Browse files Browse the repository at this point in the history
use memcpy instead of = operator for pos copy.
  • Loading branch information
kimkulling committed Jul 20, 2019
1 parent f804036 commit 103048f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/Unreal/UnrealLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 103048f

Please sign in to comment.