FIX:delete useless assert code
jira: none Change-Id: I09f5299a67e2907dca9be0eb64ad3a3cc2d41b98
This commit is contained in:
parent
2a7a3f9960
commit
070973e2ce
|
@ -354,8 +354,8 @@ void UpdateJob::update_volume(ModelVolume *volume, TriangleMesh &&mesh, const Da
|
|||
}
|
||||
|
||||
ModelObject *object = volume->get_object();
|
||||
assert(object != nullptr);
|
||||
if (object == nullptr) return;
|
||||
if (object == nullptr)
|
||||
return;
|
||||
|
||||
Plater *plater = app.plater();
|
||||
if (plater->printer_technology() == ptSLA)
|
||||
|
@ -1085,7 +1085,6 @@ bool start_create_volume_on_surface_job(CreateVolumeParams &input, DataBasePtr d
|
|||
if (instance == nullptr)
|
||||
return false;
|
||||
const ModelObject *object = mv->get_object();
|
||||
assert(object != nullptr);
|
||||
if (object == nullptr)
|
||||
return false;
|
||||
|
||||
|
|
|
@ -181,7 +181,6 @@ std::optional<Vec3d> calc_surface_offset(const Selection &selection, RaycastMana
|
|||
std::optional<float> calc_distance(const GLVolume &gl_volume, RaycastManager &raycaster, GLCanvas3D &canvas)
|
||||
{
|
||||
const ModelObject *object = get_model_object(gl_volume, canvas.get_model()->objects);
|
||||
assert(object != nullptr);
|
||||
if (object == nullptr)
|
||||
return {};
|
||||
|
||||
|
@ -511,7 +510,6 @@ bool start_dragging(const Vec2d &mouse_pos,
|
|||
|
||||
const ModelObjectPtrs &objects = canvas.get_model()->objects;
|
||||
const ModelObject *mo = get_model_object(gl_volume, objects);
|
||||
assert(object != nullptr);
|
||||
if (mo == nullptr)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue