WIP: Brush assets project #106303
|
@ -818,7 +818,8 @@ static blender::float3 paint_init_pivot_mesh(Object *ob)
|
||||||
static blender::float3 paint_init_pivot_curves(Object *ob)
|
static blender::float3 paint_init_pivot_curves(Object *ob)
|
||||||
{
|
{
|
||||||
const Curves &curves = *static_cast<const Curves *>(ob->data);
|
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()) {
|
if (bounds.has_value()) {
|
||||||
return blender::math::midpoint(bounds->min, bounds->max);
|
return blender::math::midpoint(bounds->min, bounds->max);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue