Explicitly set the size of the parent node if we have no children
parent
a30936954e
commit
5d0c63391b
|
@ -313,6 +313,12 @@ namespace Assimp {
|
|||
|
||||
std::swap_ranges(nodes.begin(), nodes.end(), parent->mChildren);
|
||||
}
|
||||
else
|
||||
{
|
||||
parent->mNumChildren = 0;
|
||||
parent->mChildren = nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
catch (std::exception&) {
|
||||
Util::delete_fun<aiNode> deleter;
|
||||
|
|
Loading…
Reference in New Issue