Update M3DImporter.cpp

Add missing brackets
pull/2973/head
Kim Kulling 2020-01-30 09:47:39 +01:00 committed by GitHub
parent 0273ffc367
commit 605336832f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -248,8 +248,9 @@ void M3DImporter::importMaterials(const M3DWrapper &m3d) {
mat->AddProperty(&c, 1, AI_MATKEY_COLOR_DIFFUSE);
mScene->mMaterials[0] = mat;
if (!m3d->nummaterial || !m3d->material)
if (!m3d->nummaterial || !m3d->material) {
return;
}
for (i = 0; i < m3d->nummaterial; i++) {
m = &m3d->material[i];