https://github.com/assimp/assimp/issues/714: fix null pointer access with
unknown texture.pull/729/merge
parent
a148f1e28c
commit
9409ce3b56
|
@ -358,7 +358,9 @@ void ObjFileMtlImporter::getTexture() {
|
|||
|
||||
std::string texture;
|
||||
m_DataIt = getName<DataArrayIt>( m_DataIt, m_DataItEnd, texture );
|
||||
out->Set( texture );
|
||||
if ( NULL!=out ) {
|
||||
out->Set( texture );
|
||||
}
|
||||
}
|
||||
|
||||
/* /////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue