We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34421c1 commit f1ae4f1Copy full SHA for f1ae4f1
gltf/stream.cpp
@@ -122,7 +122,7 @@ QuantizationPosition prepareQuantizationPosition(const std::vector<Mesh>& meshes
122
float max_rel_error = 0;
123
124
for (size_t i = 0; i < meshes.size(); ++i)
125
- if (bounds[i].isValid())
+ if (bounds[i].isValid() && bounds[i].getExtent() > 1e-2f)
126
max_rel_error = std::max(max_rel_error, error / bounds[i].getExtent());
127
128
if (max_rel_error > 5e-2f)
0 commit comments