diff --git a/source/blender/modifiers/intern/lineart/lineart_cpu.cc b/source/blender/modifiers/intern/lineart/lineart_cpu.cc index 483e4d04bde..3bffce14b7f 100644 --- a/source/blender/modifiers/intern/lineart/lineart_cpu.cc +++ b/source/blender/modifiers/intern/lineart/lineart_cpu.cc @@ -2430,9 +2430,12 @@ static bool lineart_geometry_check_visible(double model_view_proj[4][4], if (!use_mesh) { return false; } - const Bounds bounds = *use_mesh->bounds_min_max(); + const std::optional> bounds = use_mesh->bounds_min_max(); + if (!bounds.has_value()) { + return false; + } BoundBox bb; - BKE_boundbox_init_from_minmax(&bb, bounds.min, bounds.max); + BKE_boundbox_init_from_minmax(&bb, bounds.value().min, bounds.value().max); double co[8][4]; double tmp[3];