[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/libs/kgllib/extras/kgllib
From:       Rivo Laks <rivolaks () hot ! ee>
Date:       2009-08-07 17:48:56
Message-ID: 1249667336.677527.27762.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1008518 by rivol:

Fix normals calculation (has to be done after the vertices are generated)

 M  +1 -1      modelloader.cpp  


--- trunk/playground/libs/kgllib/extras/kgllib/modelloader.cpp #1008517:1008518
@@ -243,10 +243,10 @@
     }
     qDebug() << "ModelLoader::loadFromObj(): Loaded model has total of" << \
mVertices.count() << "vertices and" << mFaceVertices.count()/3 << "tris";  
+    createDuplicateVertices();
     if (mNormals.isEmpty()) {
         recalcNormals();
     }
-    createDuplicateVertices();
 
     return true;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic