diff --git a/source/blender/blenkernel/intern/geometry_set.cc b/source/blender/blenkernel/intern/geometry_set.cc index a11597b5a89..7e10b6fdf2c 100644 --- a/source/blender/blenkernel/intern/geometry_set.cc +++ b/source/blender/blenkernel/intern/geometry_set.cc @@ -12,6 +12,7 @@ #include "BKE_curves.hh" #include "BKE_geometry_set.hh" #include "BKE_geometry_set_instances.hh" +#include "BKE_grease_pencil.hh" #include "BKE_instances.hh" #include "BKE_lib_id.h" #include "BKE_mesh.hh" @@ -221,6 +222,9 @@ std::optional> GeometrySet::compute_boundbox_without_instances() if (const Curves *curves_id = this->get_curves_for_read()) { bounds = bounds::merge(bounds, curves_id->geometry.wrap().bounds_min_max()); } + if (const GreasePencil *grease_pencil = this->get_grease_pencil_for_read()) { + bounds = bounds::merge(bounds, grease_pencil->bounds_min_max()); + } return bounds; }