From 35cf61616956070ee204e8a890778d0fdd978ac9 Mon Sep 17 00:00:00 2001 From: Miguel Pozo Date: Mon, 4 Dec 2023 19:33:58 +0100 Subject: [PATCH] FIx: Draw: Volume coordinates regression Caused by #114933 --- source/blender/draw/intern/draw_resource.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/draw/intern/draw_resource.hh b/source/blender/draw/intern/draw_resource.hh index 065da4ebf65..54b3cf378f8 100644 --- a/source/blender/draw/intern/draw_resource.hh +++ b/source/blender/draw/intern/draw_resource.hh @@ -106,7 +106,7 @@ inline void ObjectInfos::sync(const blender::draw::ObjectRef ref, bool is_active const blender::Bounds bounds = *BKE_volume_min_max( static_cast(ref.object->data)); orco_add = blender::math::midpoint(bounds.min, bounds.max); - orco_mul = (bounds.max - bounds.max) * 0.5f; + orco_mul = (bounds.max - bounds.min) * 0.5f; break; } case ID_ME: {