Skip to content

Commit

Permalink
Bugfix: FCollada's special texture tag "bump" now maps to aiTEXTURE_N…
Browse files Browse the repository at this point in the history
…ORMAL. 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
  • Loading branch information
ulfjorensen committed Sep 14, 2011
1 parent 1305376 commit 487071b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/ColladaLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion code/Q3BSPZipArchive.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 4 additions & 2 deletions tools/assimp_view/MessageProc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 487071b

Please sign in to comment.