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

pull/1520/head
Kim Kulling 2017-10-31 13:08:24 +01:00
parent 64ee21024b
commit af4556d569
1 changed files with 3 additions and 2 deletions

View File

@ -85,12 +85,13 @@ void ScaleProcess::Execute( aiScene* pScene ) {
void ScaleProcess::traverseNodes( aiNode *node ) { void ScaleProcess::traverseNodes( aiNode *node ) {
applyScaling( 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 ]; aiNode *currentNode = currentNode->mChildren[ i ];
if ( nullptr != currentNode ) { if ( nullptr != currentNode ) {
traverseNodes( currentNode ); traverseNodes( currentNode );
} }
} }*/
} }
void ScaleProcess::applyScaling( aiNode *currentNode ) { void ScaleProcess::applyScaling( aiNode *currentNode ) {