Parcourir la source

only scale the root node because this will rescale all children nodes as well.

Kim Kulling il y a 7 ans
Parent
commit
af4556d569
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      code/ScaleProcess.cpp

+ 3 - 2
code/ScaleProcess.cpp

@@ -85,12 +85,13 @@ void ScaleProcess::Execute( aiScene* pScene ) {
 
 void ScaleProcess::traverseNodes( aiNode *node ) {
     applyScaling( node );
-    for ( unsigned int i = 0; i < node->mNumChildren; ++i ) {
+
+    /*for ( unsigned int i = 0; i < node->mNumChildren; ++i ) {
         aiNode *currentNode = currentNode->mChildren[ i ];
         if ( nullptr != currentNode ) {
             traverseNodes( currentNode );
         }
-    }
+    }*/
 }
 
 void ScaleProcess::applyScaling( aiNode *currentNode ) {