Fix build in debug mode
This commit is contained in:
parent
9143d9891a
commit
f987caa63d
@ -415,8 +415,8 @@ static void filter_support_points_by_modifiers(sla::SupportPoints &pts,
|
||||
const SuppPtMask &mask,
|
||||
const std::vector<float> &slice_grid)
|
||||
{
|
||||
assert((blockers.empty() || blockers.size() == slice_grid.size()) &&
|
||||
(enforcers.empty() || enforcers.size() == slice_grid.size()));
|
||||
assert((mask.blockers.empty() || mask.blockers.size() == slice_grid.size()) &&
|
||||
(mask.enforcers.empty() || mask.enforcers.size() == slice_grid.size()));
|
||||
|
||||
auto new_pts = reserve_vector<sla::SupportPoint>(pts.size());
|
||||
|
||||
|
@ -6133,7 +6133,7 @@ void Plater::export_stl_obj(bool extended, bool selection_only)
|
||||
for (const SLAPrintObject::Instance& obj_instance : obj_instances) {
|
||||
auto it = std::find_if(object->model_object()->instances.begin(), object->model_object()->instances.end(),
|
||||
[&obj_instance](const ModelInstance *mi) { return mi->id() == obj_instance.instance_id; });
|
||||
assert(it != model_object->instances.end());
|
||||
assert(it != object->model_object()->instances.end());
|
||||
|
||||
if (it != object->model_object()->instances.end()) {
|
||||
const bool one_inst_only = selection_only && ! selection.is_single_full_object();
|
||||
|
Loading…
Reference in New Issue
Block a user