소스 검색

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

Kim Kulling 7 년 전
부모
커밋
af4556d569
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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 ) {