2023-11-03 05:12:35 +08:00
|
|
|
diff --git a/thirdparty/meshoptimizer/simplifier.cpp b/thirdparty/meshoptimizer/simplifier.cpp
|
2024-10-26 01:41:51 +08:00
|
|
|
index af64cbda49..8a7072fe4e 100644
|
2023-11-03 05:12:35 +08:00
|
|
|
--- a/thirdparty/meshoptimizer/simplifier.cpp
|
|
|
|
+++ b/thirdparty/meshoptimizer/simplifier.cpp
|
2024-10-26 01:41:51 +08:00
|
|
|
@@ -2048,7 +2048,7 @@ size_t meshopt_simplifyEdge(unsigned int* destination, const unsigned int* indic
|
2023-11-03 05:12:35 +08:00
|
|
|
|
2024-10-26 01:41:51 +08:00
|
|
|
// result_error is quadratic; we need to remap it back to linear
|
|
|
|
if (out_result_error)
|
|
|
|
- *out_result_error = sqrtf(result_error) * error_scale;
|
|
|
|
+ *out_result_error = sqrtf(vertex_error) * error_scale;
|
2023-11-03 05:12:35 +08:00
|
|
|
|
2024-10-26 01:41:51 +08:00
|
|
|
return result_count;
|
2023-11-03 05:12:35 +08:00
|
|
|
}
|