Merge pull request #2654 from assimp/kimkulling-patch-4
closes https://github.com/assimp/assimp/issues/2627 - fix typopull/2647/head^2
commit
ee1ed502e7
|
@ -242,7 +242,10 @@ inline Ref<Accessor> ExportData(Asset& a, std::string& meshName, Ref<Buffer>& bu
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
void GetMatScalar(const aiMaterial* mat, float& val, const char* propName, int type, int idx) {
|
void GetMatScalar(const aiMaterial* mat, float& val, const char* propName, int type, int idx) {
|
||||||
ai_assert(mat->Get(propName, type, idx, val) == AI_SUCCESS);
|
ai_assert( nullptr != mat );
|
||||||
|
if ( nullptr != mat ) {
|
||||||
|
mat->Get(propName, type, idx, val);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue