Fixed crash when opening Emboss Gizmo pressing 'T' key after slicing an object using SLA printer
This commit is contained in:
parent
5d40088c0e
commit
582f51cdfd
@ -3444,7 +3444,7 @@ void priv::find_closest_volume(const Selection &selection,
|
||||
for (unsigned int id : indices) {
|
||||
const GLVolume *gl_volume = selection.get_volume(id);
|
||||
const ModelVolume *volume = get_model_volume(*gl_volume, objects);
|
||||
if (!volume->is_model_part()) continue;
|
||||
if (volume == nullptr || !volume->is_model_part()) continue;
|
||||
Slic3r::Polygon hull = CameraUtils::create_hull2d(camera, *gl_volume);
|
||||
Vec2d c = hull.centroid().cast<double>();
|
||||
Vec2d d = c - screen_center;
|
||||
|
Loading…
Reference in New Issue
Block a user