blender/extern/carve/patches/mesh_simplify_uninitialized_var.patch
Sergey Sharybin e53c00a2db Add patchset to recent Carve changes
In the future i'd rather have this reported to an
upstream instead of adding local changes. It's really
easy to override this changes if patchset is not added
and this is to be fixed in upstream. Also the function
was never used so it was rather totally harmless warning
for us.
2014-06-11 13:13:36 +06:00

13 lines
532 B
Diff

diff -r e82d852e4fb0 include/carve/mesh_simplify.hpp
--- a/include/carve/mesh_simplify.hpp Wed Jan 15 13:16:14 2014 +1100
+++ b/include/carve/mesh_simplify.hpp Wed Jun 11 13:13:09 2014 +0600
@@ -1414,7 +1414,7 @@
size_t removeLowVolumeManifolds(meshset_t *meshset, double min_abs_volume) {
- size_t n_removed;
+ size_t n_removed = 0;
for (size_t i = 0; i < meshset->meshes.size(); ++i) {
if (fabs(meshset->meshes[i]->volume()) < min_abs_volume) {
delete meshset->meshes[i];