FBX Import: Properly clean up post_nodes_chain in case of exception.

pull/1804/head
Tommy 2018-02-24 08:43:36 +01:00
parent b91976eead
commit c18a07e47f
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ void Converter::ConvertNodes( uint64_t id, aiNode& parent, const aiMatrix4x4& pa
Util::delete_fun<aiNode> deleter;
std::for_each( nodes.begin(), nodes.end(), deleter );
std::for_each( nodes_chain.begin(), nodes_chain.end(), deleter );
std::for_each( post_nodes_chain.begin(), post_nodes_chain.end(), deleter );
}
}