mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
- Fixed a problem with OBJ models being flipped
This commit is contained in:
parent
97d4fdd78a
commit
dc74617820
1 changed files with 4 additions and 4 deletions
|
@ -1507,13 +1507,13 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
|
|||
{
|
||||
v.x = float.Parse(fields[0], CultureInfo.InvariantCulture);
|
||||
v.z = float.Parse(fields[1], CultureInfo.InvariantCulture);
|
||||
v.y = float.Parse(fields[2], CultureInfo.InvariantCulture);
|
||||
v.y = -float.Parse(fields[2], CultureInfo.InvariantCulture);
|
||||
|
||||
|
||||
// Prepare to fix rotation angle
|
||||
float angleOfsetCos = (float)Math.Cos(Angle2D.PIHALF);
|
||||
float angleOfsetSin = (float)Math.Sin(Angle2D.PIHALF);
|
||||
|
||||
float angleOfsetCos = (float)Math.Cos(-Angle2D.PIHALF);
|
||||
float angleOfsetSin = (float)Math.Sin(-Angle2D.PIHALF);
|
||||
|
||||
// Fix rotation angle
|
||||
float rx = angleOfsetCos * v.x - angleOfsetSin * v.y;
|
||||
float ry = angleOfsetSin * v.x + angleOfsetCos * v.y;
|
||||
|
|
Loading…
Reference in a new issue