浏览代码

Merge branch 'master' into export_with_rotation

Kim Kulling 4 年之前
父节点
当前提交
18886686e1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      code/AssetLib/glTF2/glTF2Asset.inl

+ 1 - 0
code/AssetLib/glTF2/glTF2Asset.inl

@@ -383,6 +383,7 @@ unsigned int LazyDict<T>::Remove(const char *id) {
     mAsset.mUsedIds[id] = false;
     mObjsById.erase(id);
     mObjsByOIndex.erase(index);
+    delete mObjs[index];
     mObjs.erase(mObjs.begin() + index);
 
     //update index of object in mObjs;