Add unittest

This commit is contained in:
Kim Kulling
2017-10-31 12:24:32 +01:00
parent bbeb9dd640
commit ae020281e2
6 changed files with 44 additions and 12 deletions

View File

@@ -80,10 +80,15 @@ void ScaleProcess::Execute( aiScene* pScene ) {
return;
}
for ( unsigned int i = 0; i < pScene->mRootNode->mNumChildren; ++i ) {
aiNode *currentNode = pScene->mRootNode->mChildren[ i ];
traverseNodes( pScene->mRootNode );
}
void ScaleProcess::traverseNodes( aiNode *node ) {
applyScaling( node );
for ( unsigned int i = 0; i < node->mNumChildren; ++i ) {
aiNode *currentNode = currentNode->mChildren[ i ];
if ( nullptr != currentNode ) {
applyScaling( currentNode );
traverseNodes( currentNode );
}
}
}