fix SceneCombiner copy of aiNode not setting mParent field

pull/854/head
tomacd 2016-04-18 11:28:21 +02:00
parent fe60654c1a
commit 5a8c15d826
1 changed files with 5 additions and 0 deletions

View File

@ -1211,6 +1211,11 @@ void SceneCombiner::Copy (aiNode** _dest, const aiNode* src)
// and reallocate all arrays
GetArrayCopy( dest->mMeshes, dest->mNumMeshes );
CopyPtrArray( dest->mChildren, src->mChildren,dest->mNumChildren);
// need to set the mParent fields to the created aiNode.
for( unsigned int i = 0; i < dest->mNumChildren; i ++ ) {
dest->mChildren[i]->mParent = dest;
}
}
// ------------------------------------------------------------------------------------------------