From 1ad789bae9d5f38d17ae525037fbbc4ce450f1b6 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sun, 24 Dec 2017 14:26:53 +0200 Subject: [PATCH] Raw: Reformat code, no functional change --- code/RawLoader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/RawLoader.cpp b/code/RawLoader.cpp index 2b76455d7..f8ca4e689 100644 --- a/code/RawLoader.cpp +++ b/code/RawLoader.cpp @@ -243,8 +243,10 @@ void RAWImporter::InternReadFile( const std::string& pFile, { cc = &pScene->mRootNode; pScene->mRootNode->mNumChildren = 0; + } else { + cc = new aiNode*[pScene->mRootNode->mNumChildren]; + pScene->mRootNode->mChildren = cc; } - else cc = pScene->mRootNode->mChildren = new aiNode*[pScene->mRootNode->mNumChildren]; pScene->mNumMaterials = pScene->mNumMeshes; aiMaterial** mats = pScene->mMaterials = new aiMaterial*[pScene->mNumMaterials];