From 4fcbfcfc96c0a3fe0a12eadcdfc56525e51eec2a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 22 Jan 2023 20:48:16 +1100 Subject: [PATCH] Cleanup: GCC compiler warning --- source/blender/editors/uvedit/uvedit_unwrap_ops.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.cc b/source/blender/editors/uvedit/uvedit_unwrap_ops.cc index d95655cef45..208268c71c1 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.cc +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.cc @@ -1347,7 +1347,8 @@ static void uv_map_transform_center(const Scene *scene, float r_bounds[2][3]) { /* only operates on the edit object - this is all that's needed now */ - const int around = (v3d) ? scene->toolsettings->transform_pivot_point : V3D_AROUND_CENTER_BOUNDS; + const int around = (v3d) ? scene->toolsettings->transform_pivot_point : + int(V3D_AROUND_CENTER_BOUNDS); float bounds[2][3]; INIT_MINMAX(bounds[0], bounds[1]);