Update ScaleProcess.cpp

Fix review findings.
pull/2607/head
Kim Kulling 2019-08-19 20:24:01 +02:00 committed by GitHub
parent fbb34b1de1
commit eb55a6a3cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -73,10 +73,13 @@ void ScaleProcess::SetupProperties( const Importer* pImp ) {
} }
void ScaleProcess::Execute( aiScene* pScene ) { void ScaleProcess::Execute( aiScene* pScene ) {
if(mScale == 1.0f) return; // nothing to scale if(mScale == 1.0f) {
return; // nothing to scale
}
ai_assert( mScale != 0 ); ai_assert( mScale != 0 );
ai_assert(nullptr != pScene && nullptr != pScene->mRootNode); ai_assert( nullptr != pScene );
ai_assert( nullptr != pScene->mRootNode );
if ( nullptr == pScene ) { if ( nullptr == pScene ) {
return; return;