Skip to content

Commit

Permalink
Return first geometryBuffer if no best batch found
Browse files Browse the repository at this point in the history
  • Loading branch information
ljowen committed Aug 19, 2024
1 parent 6545ff7 commit 5150af3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/engine/Source/Scene/I3SLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,15 @@ I3SLayer.prototype._findBestGeometryBuffers = function (
};
}
}
// If no match found return first geometryBuffer
if (defined(geometryDefinition[0])) {
return {
bufferIndex: 0,
definition: geometryDefinition,
geometryBufferInfo: geometryDefinition[0],
};
}
}

return 0;
};

/**
Expand Down

0 comments on commit 5150af3

Please sign in to comment.