|
@@ -414,7 +414,7 @@ void ObjFileParser::getFace(aiPrimitiveType type)
|
|
|
|
|
|
if ( pIndices->empty() ) {
|
|
if ( pIndices->empty() ) {
|
|
DefaultLogger::get()->error("Obj: Ignoring empty face");
|
|
DefaultLogger::get()->error("Obj: Ignoring empty face");
|
|
- // skip line and clean up
|
|
|
|
|
|
+ // skip line and clean up
|
|
m_DataIt = skipLine<DataArrayIt>( m_DataIt, m_DataItEnd, m_uiLine );
|
|
m_DataIt = skipLine<DataArrayIt>( m_DataIt, m_DataItEnd, m_uiLine );
|
|
delete pNormalID;
|
|
delete pNormalID;
|
|
delete pTexID;
|
|
delete pTexID;
|
|
@@ -539,7 +539,10 @@ void ObjFileParser::getMaterialLib()
|
|
const std::string strMatName(pStart, &(*m_DataIt));
|
|
const std::string strMatName(pStart, &(*m_DataIt));
|
|
std::string absName;
|
|
std::string absName;
|
|
if ( m_pIO->StackSize() > 0 ) {
|
|
if ( m_pIO->StackSize() > 0 ) {
|
|
- const std::string &path = m_pIO->CurrentDirectory();
|
|
|
|
|
|
+ std::string path = m_pIO->CurrentDirectory();
|
|
|
|
+ if ( '/' != *path.rbegin() ) {
|
|
|
|
+ path += '/';
|
|
|
|
+ }
|
|
absName = path + strMatName;
|
|
absName = path + strMatName;
|
|
} else {
|
|
} else {
|
|
absName = strMatName;
|
|
absName = strMatName;
|