Browse Source

B3DImporter: Fix double free when reusing Importer

Turo Lamminen 7 năm trước cách đây
mục cha
commit
89afe0780b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      code/B3DImporter.cpp

+ 1 - 0
code/B3DImporter.cpp

@@ -702,6 +702,7 @@ void B3DImporter::ReadBB3D( aiScene *scene ){
 
     //nodes
     scene->mRootNode=_nodes[0];
+    _nodes.clear();  // node ownership now belongs to scene
 
     //material
     if( !_materials.size() ){