Fixed crash when trying to add text on an object sliced using SLA printer by right clicking on supports or pad

This commit is contained in:
enricoturri1966 2023-03-24 08:40:32 +01:00
parent 582f51cdfd
commit 6ba067ad36

View File

@ -3394,6 +3394,7 @@ bool priv::start_create_volume_on_surface_job(
{
assert(gl_volume != nullptr);
if (gl_volume == nullptr) return false;
if (gl_volume->volume_idx() < 0) return false;
Plater *plater = wxGetApp().plater();
const ModelObjectPtrs &objects = plater->model().objects;