From eb55a6a3cd5030e2c15037505b335fc5a9904ec8 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 19 Aug 2019 20:24:01 +0200 Subject: [PATCH] Update ScaleProcess.cpp Fix review findings. --- code/PostProcessing/ScaleProcess.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/code/PostProcessing/ScaleProcess.cpp b/code/PostProcessing/ScaleProcess.cpp index 36c59ecf5..2a605d6bc 100644 --- a/code/PostProcessing/ScaleProcess.cpp +++ b/code/PostProcessing/ScaleProcess.cpp @@ -73,10 +73,13 @@ void ScaleProcess::SetupProperties( const Importer* pImp ) { } 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(nullptr != pScene && nullptr != pScene->mRootNode); + ai_assert( mScale != 0 ); + ai_assert( nullptr != pScene ); + ai_assert( nullptr != pScene->mRootNode ); if ( nullptr == pScene ) { return; @@ -194,4 +197,4 @@ void ScaleProcess::applyScaling( aiNode *currentNode ) { } } -} // Namespace Assimp \ No newline at end of file +} // Namespace Assimp