Browse Source

Bugfix: FCollada's special texture tag "bump" now maps to aiTEXTURE_NORMAL. Thanks to agent8261 for the hint
Bugfix: AssimpView now properly skips the leading quotation mark when being executed with a file

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1078 67173fc5-114c-0410-ac8e-9d2fd5bffc1f

ulfjorensen 14 năm trước cách đây
mục cha
commit
487071be77

+ 1 - 1
code/ColladaLoader.cpp

@@ -1260,7 +1260,7 @@ void ColladaLoader::FillMaterials( const ColladaParser& pParser, aiScene* /*pSce
 			AddTexture( mat, pParser, effect, effect.mTexDiffuse, aiTextureType_DIFFUSE);
 			AddTexture( mat, pParser, effect, effect.mTexDiffuse, aiTextureType_DIFFUSE);
 
 
 		if( !effect.mTexBump.mName.empty())
 		if( !effect.mTexBump.mName.empty())
-			AddTexture( mat, pParser, effect, effect.mTexBump, aiTextureType_HEIGHT);
+			AddTexture( mat, pParser, effect, effect.mTexBump, aiTextureType_NORMALS);
 
 
 		if( !effect.mTexTransparent.mName.empty())
 		if( !effect.mTexTransparent.mName.empty())
 			AddTexture( mat, pParser, effect, effect.mTexTransparent, aiTextureType_OPACITY);
 			AddTexture( mat, pParser, effect, effect.mTexTransparent, aiTextureType_OPACITY);

+ 1 - 1
code/Q3BSPZipArchive.h

@@ -40,7 +40,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #ifndef AI_Q3BSP_ZIPARCHIVE_H_INC
 #ifndef AI_Q3BSP_ZIPARCHIVE_H_INC
 #define AI_Q3BSP_ZIPARCHIVE_H_INC
 #define AI_Q3BSP_ZIPARCHIVE_H_INC
 
 
-#include "unzip.h"
+#include "../contrib/unzip/unzip.h"
 #include "../include/IOStream.h"
 #include "../include/IOStream.h"
 #include "../include/IOSystem.h"
 #include "../include/IOSystem.h"
 #include <string>
 #include <string>

+ 4 - 2
tools/assimp_view/MessageProc.cpp

@@ -128,10 +128,12 @@ void HandleCommandLine(char* p_szCommand)
 	if (strlen(sz) < 2)return;
 	if (strlen(sz) < 2)return;
 
 
 	if (*sz == '\"')
 	if (*sz == '\"')
-		{
+  {
 		char* sz2 = strrchr(sz,'\"');
 		char* sz2 = strrchr(sz,'\"');
 		if (sz2)*sz2 = 0;
 		if (sz2)*sz2 = 0;
-		}
+    sz++; // skip the starting quote
+	}
+
 	strcpy( g_szFileName, sz );
 	strcpy( g_szFileName, sz );
 	LoadAsset();
 	LoadAsset();