FIX: NFF face winding bug (actually it was in StandardShapes.cpp).

FIX: StandardShapes::MakeCone() - face order was incorrect in 50% of all cases.
Implemented StandardShapes::MakeCircle().
Fixed a compiler warning in B3DImporter.cpp.
Modified cone.nff - one texture isn't found, that's ok. The mapping should be better visible now.


git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@299 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2009-01-15 19:22:29 +00:00
parent 0f5c1cf3ba
commit 6557c28ef7
6 changed files with 117 additions and 93 deletions

View File

@@ -247,7 +247,7 @@ void B3DImporter::ReadBRUS(){
//Textures
for( int i=0;i<n_texs;++i ){
int texid=ReadInt();
if( !i && texid>=0 && texid<_textures.size() ){
if( !i && texid>=0 && texid<(int)_textures.size() ){
//just use tex 0 for now
const Texture &tex=_textures[texid];
aiString texname( tex.name );