refactoring : remove dead code.
Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>pull/146/head
parent
a889c1575f
commit
e4fca83237
|
@ -591,15 +591,12 @@ void ObjFileImporter::appendChildToParentNode(aiNode *pParent, aiNode *pChild)
|
||||||
|
|
||||||
// Assign parent to child
|
// Assign parent to child
|
||||||
pChild->mParent = pParent;
|
pChild->mParent = pParent;
|
||||||
size_t sNumChildren = 0;
|
|
||||||
(void)sNumChildren; // remove warning on release build
|
|
||||||
|
|
||||||
// If already children was assigned to the parent node, store them in a
|
// If already children was assigned to the parent node, store them in a
|
||||||
std::vector<aiNode*> temp;
|
std::vector<aiNode*> temp;
|
||||||
if (pParent->mChildren != NULL)
|
if (pParent->mChildren != NULL)
|
||||||
{
|
{
|
||||||
sNumChildren = pParent->mNumChildren;
|
ai_assert( 0 != pParent->mNumChildren );
|
||||||
ai_assert( 0 != sNumChildren );
|
|
||||||
for (size_t index = 0; index < pParent->mNumChildren; index++)
|
for (size_t index = 0; index < pParent->mNumChildren; index++)
|
||||||
{
|
{
|
||||||
temp.push_back(pParent->mChildren [ index ] );
|
temp.push_back(pParent->mChildren [ index ] );
|
||||||
|
|
Loading…
Reference in New Issue