Преглед изворни кода

Update ScaleProcess.cpp

Fix review findings.
Kim Kulling пре 6 година
родитељ
комит
eb55a6a3cd
1 измењених фајлова са 7 додато и 4 уклоњено
  1. 7 4
      code/PostProcessing/ScaleProcess.cpp

+ 7 - 4
code/PostProcessing/ScaleProcess.cpp

@@ -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(nullptr != pScene && nullptr != pScene->mRootNode);
+    ai_assert( mScale != 0 );
+    ai_assert( nullptr != pScene );
+    ai_assert( nullptr != pScene->mRootNode );
 
 
     if ( nullptr == pScene ) {
     if ( nullptr == pScene ) {
         return;
         return;
@@ -194,4 +197,4 @@ void ScaleProcess::applyScaling( aiNode *currentNode ) {
     }
     }
 }
 }
 
 
-} // Namespace Assimp
+} // Namespace Assimp