only scale the root node because this will rescale all children nodes as well.
parent
64ee21024b
commit
af4556d569
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue