瀏覽代碼

Merge branch 'master' into issue_2668

Kim Kulling 6 年之前
父節點
當前提交
12a101124a
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      code/glTF2/glTF2Importer.cpp

+ 0 - 1
code/glTF2/glTF2Importer.cpp

@@ -444,7 +444,6 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r)
                         "\" does not match the vertex count");
                         "\" does not match the vertex count");
                     continue;
                     continue;
                 }
                 }
-                aim->mColors[c] = new aiColor4D[attr.color[c]->count];
                 attr.color[c]->ExtractData(aim->mColors[c]);
                 attr.color[c]->ExtractData(aim->mColors[c]);
             }
             }
             for (size_t tc = 0; tc < attr.texcoord.size() && tc < AI_MAX_NUMBER_OF_TEXTURECOORDS; ++tc) {
             for (size_t tc = 0; tc < attr.texcoord.size() && tc < AI_MAX_NUMBER_OF_TEXTURECOORDS; ++tc) {