From af4556d56963f61808f7273480d607e4f46737d5 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 31 Oct 2017 13:08:24 +0100 Subject: [PATCH] only scale the root node because this will rescale all children nodes as well. --- code/ScaleProcess.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/ScaleProcess.cpp b/code/ScaleProcess.cpp index 4556df782..ada978e82 100644 --- a/code/ScaleProcess.cpp +++ b/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 ) {