Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2020-07-01 19:42:04 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-07-01 19:42:04 +0300
commit777690902663f3dc820f183329e404a6388485f4 (patch)
tree7429a08f1e506dcd85501dad9bca0595efb661be /source/blender/bmesh
parent590ce6817d76b01d1eff0a54bf2f5240596ccefa (diff)
Change boolean blenlib interface to be purely C++.
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/tools/bmesh_boolean.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/bmesh/tools/bmesh_boolean.cc b/source/blender/bmesh/tools/bmesh_boolean.cc
index 56385f741b5..40f893005ee 100644
--- a/source/blender/bmesh/tools/bmesh_boolean.cc
+++ b/source/blender/bmesh/tools/bmesh_boolean.cc
@@ -21,7 +21,7 @@
*/
#include "BLI_array.hh"
-#include "BLI_boolean.h"
+#include "BLI_boolean.hh"
#include "BLI_math.h"
#include "BLI_math_mpq.hh"
#include "BLI_mesh_intersect.hh"
@@ -169,7 +169,8 @@ static int bmesh_boolean(BMesh *bm,
}
};
}
- PolyMesh pm_out = boolean(pm_in, boolean_mode, nshapes, shape_fn);
+ bool_optype op = static_cast<bool_optype>(boolean_mode);
+ PolyMesh pm_out = boolean(pm_in, op, nshapes, shape_fn);
apply_polymesh_output_to_bmesh(bm, pm_out);
return pm_in.vert.size() != pm_out.vert.size() || pm_in.face.size() != pm_out.face.size();
}
@@ -221,7 +222,7 @@ bool BM_mesh_boolean_knife(BMesh *bm,
const bool use_self,
const bool use_separate_all)
{
- return blender::meshintersect::bmesh_boolean(bm, looptris, looptris_tot, test_fn, user_data, use_self, use_separate_all, BOOLEAN_NONE);
+ return blender::meshintersect::bmesh_boolean(bm, looptris, looptris_tot, test_fn, user_data, use_self, use_separate_all, blender::meshintersect::BOOLEAN_NONE);
}
} /* extern "C" */