Browse Source

Update M3DImporter.cpp

Add missing brackets
Kim Kulling 5 years ago
parent
commit
605336832f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      code/M3D/M3DImporter.cpp

+ 2 - 1
code/M3D/M3DImporter.cpp

@@ -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];