Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling authored Sep 13, 2019
2 parents f985bcb + ee1ed50 commit cc7ba52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/glTF/glTFExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ inline Ref<Accessor> ExportData(Asset& a, std::string& meshName, Ref<Buffer>& bu

namespace {
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);
}
}
}

Expand Down

0 comments on commit cc7ba52

Please sign in to comment.