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
pull/2/head
ulfjorensen 2011-09-14 09:41:48 +00:00
parent 1305376060
commit 487071be77
3 changed files with 6 additions and 4 deletions

View File

@ -1260,7 +1260,7 @@ void ColladaLoader::FillMaterials( const ColladaParser& pParser, aiScene* /*pSce
AddTexture( mat, pParser, effect, effect.mTexDiffuse, aiTextureType_DIFFUSE);
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())
AddTexture( mat, pParser, effect, effect.mTexTransparent, aiTextureType_OPACITY);

View File

@ -40,7 +40,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef 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/IOSystem.h"
#include <string>

View File

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