mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
Fix draco errors being added to wrong part of list
This commit is contained in:
parent
65d85138cc
commit
00f7b75f34
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ void BuildDracoMeshTask::run(const baker::BakeContextPointer& context, const Inp
|
||||||
bool dracoError;
|
bool dracoError;
|
||||||
std::unique_ptr<draco::Mesh> dracoMesh;
|
std::unique_ptr<draco::Mesh> dracoMesh;
|
||||||
std::tie(dracoMesh, dracoError) = createDracoMesh(mesh, normals, tangents, materialList);
|
std::tie(dracoMesh, dracoError) = createDracoMesh(mesh, normals, tangents, materialList);
|
||||||
dracoErrorsPerMesh[dracoErrorsPerMesh.size()-1] = dracoError;
|
dracoErrorsPerMesh[i] = dracoError;
|
||||||
|
|
||||||
if (dracoMesh) {
|
if (dracoMesh) {
|
||||||
draco::Encoder encoder;
|
draco::Encoder encoder;
|
||||||
|
|
Loading…
Reference in a new issue