This commit is contained in:
Erwin Coumans
2017-06-08 14:28:42 -07:00

View File

@@ -36,7 +36,7 @@ bool b3ImportMeshUtility::loadAndRegisterMeshFromFileInternal(const std::string&
//int textureIndex = -1;
//try to load some texture
for (int i=0;i<shapes.size();i++)
for (int i=0; meshData.m_textureImage==0 && i<shapes.size();i++)
{
const tinyobj::shape_t& shape = shapes[i];
if (shape.material.diffuse_texname.length()>0)