only scale the root node because this will rescale all children nodes as well.
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user