Browse Source

Update STLLoader.cpp

If `faceVertexCounter` does not start equal 3, then at line 291 you will get a warning
Giuseppe Barbieri 8 years ago
parent
commit
b6fb1f3c05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/STLLoader.cpp

+ 1 - 1
code/STLLoader.cpp

@@ -274,7 +274,7 @@ void STLImporter::LoadASCIIFile()
         }
         else pScene->mRootNode->mName.Set("<STL_ASCII>");
 
-        unsigned int faceVertexCounter = 0;
+        unsigned int faceVertexCounter = 3;
         for ( ;; )
         {
             // go to the next token