WIP: Brush assets project #106303

Draft
Julian Eisel wants to merge 352 commits from brush-assets-project into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 52493e26a0 - Show all commits

View File

@ -818,7 +818,8 @@ static blender::float3 paint_init_pivot_mesh(Object *ob)
static blender::float3 paint_init_pivot_curves(Object *ob)
{
const Curves &curves = *static_cast<const Curves *>(ob->data);
const std::optional<blender::Bounds<blender::float3>> bounds = curves.geometry.wrap().bounds_min_max();
const std::optional<blender::Bounds<blender::float3>> bounds =
curves.geometry.wrap().bounds_min_max();
if (bounds.has_value()) {
return blender::math::midpoint(bounds->min, bounds->max);
}