Skip to content

Commit

Permalink
addede support for vertex sharing for fix topology abc files.
Browse files Browse the repository at this point in the history
this is investigative as performance might actually be worse.
  • Loading branch information
jasonm-unity committed Jun 26, 2017
1 parent ee16ee4 commit faa33af
Show file tree
Hide file tree
Showing 4 changed files with 2,156 additions and 1,816 deletions.
4 changes: 2 additions & 2 deletions Plugin/abci/Importer/AlembicImporter.cpp
Expand Up @@ -257,7 +257,7 @@ abciAPI void aiPolyMeshGetSampleSummary(aiPolyMeshSample* sample, aiMeshSampleSu
{
if (sample)
{
sample->getSummary(forceRefresh, *summary);
sample->getSummary(forceRefresh, *summary, sample);
}
}

Expand Down Expand Up @@ -298,7 +298,7 @@ abciAPI void aiPolyMeshFillVertexBuffer(aiPolyMeshSample* sample, int splitIndex

abciAPI int aiPolyMeshPrepareSubmeshes(aiPolyMeshSample* sample, const aiFacesets* facesets)
{
return (sample ? sample->prepareSubmeshes(*facesets) : 0);
return (sample ? sample->prepareSubmeshes(sample, *facesets) : 0);
}

abciAPI int aiPolyMeshGetSplitSubmeshCount(aiPolyMeshSample* sample, int splitIndex)
Expand Down
1 change: 1 addition & 0 deletions Plugin/abci/Importer/AlembicImporter.h
Expand Up @@ -113,6 +113,7 @@ struct aiConfig
bool useThreads = true;
int32_t cacheSamples = 0;
bool submeshPerUVTile = true;
bool shareVertices = false;
};

struct aiTimeSamplingData
Expand Down

0 comments on commit faa33af

Please sign in to comment.