Browse Source

Fix my own stupidity..

Godzil 4 years ago
parent
commit
5996e38e6e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/shapes/objfile.cpp

+ 1 - 1
source/shapes/objfile.cpp

@@ -476,13 +476,13 @@ int OBJFile::execLine(int argc, char *argv[], uint32_t currentLine)
                 this->currentGroup->addObject(makeVector(this->vertices(v[3]),
                                                          this->verticesNormal(vn[3]),
                                                          Colour(0.5, 0, 1)));
+#endif
                 t = new SmoothTriangle(this->vertices(v[1]),
                                        this->vertices(v[2]),
                                        this->vertices(v[3]),
                                        this->verticesNormal(vn[1]),
                                        this->verticesNormal(vn[2]),
                                        this->verticesNormal(vn[3]));
-#endif
             }
             this->currentGroup->addObject(t);
             ret = 0;