Browse Source

# bugfix [3295074]: copy'n'paste bug in ReadSamplerProperties would cause y-axis sampler state to be assigned to the respective x values.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@975 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 14 years ago
parent
commit
73d109c7cc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      code/ColladaParser.cpp

+ 3 - 3
code/ColladaParser.cpp

@@ -1250,7 +1250,7 @@ void ColladaParser::ReadSamplerProperties( Sampler& out )
 				TestClosing( "wrapU");
 			}
 			else if( IsElement( "wrapV"))	{
-				out.mWrapU = ReadBoolFromTextContent();
+				out.mWrapV = ReadBoolFromTextContent();
 				TestClosing( "wrapV");
 			}
 			else if( IsElement( "mirrorU"))		{
@@ -1258,7 +1258,7 @@ void ColladaParser::ReadSamplerProperties( Sampler& out )
 				TestClosing( "mirrorU");
 			}
 			else if( IsElement( "mirrorV"))	{
-				out.mMirrorU = ReadBoolFromTextContent();
+				out.mMirrorV = ReadBoolFromTextContent();
 				TestClosing( "mirrorV");
 			}
 			else if( IsElement( "repeatU"))	{
@@ -1274,7 +1274,7 @@ void ColladaParser::ReadSamplerProperties( Sampler& out )
 				TestClosing( "offsetU");
 			}
 			else if( IsElement( "offsetV"))	{
-				out.mTransform.mTranslation.x = ReadFloatFromTextContent();
+				out.mTransform.mTranslation.y = ReadFloatFromTextContent();
 				TestClosing( "offsetV");
 			}
 			else if( IsElement( "rotateUV"))	{