[Bf-blender-cvs] [f420c1f3d4e] sculpt-dev: sculpt-dev: Fix excessively pedantic compiler error

Joseph Eagar noreply at git.blender.org
Fri Oct 7 11:22:20 CEST 2022


Commit: f420c1f3d4efdd7ecbb5fd8f1e79006a0b19f987
Author: Joseph Eagar
Date:   Fri Oct 7 02:22:01 2022 -0700
Branches: sculpt-dev
https://developer.blender.org/rBf420c1f3d4efdd7ecbb5fd8f1e79006a0b19f987

sculpt-dev: Fix excessively pedantic compiler error

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_face_set.cc

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.cc b/source/blender/editors/sculpt_paint/sculpt_face_set.cc
index 8b4c298dadd..cffff1f745d 100644
--- a/source/blender/editors/sculpt_paint/sculpt_face_set.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_face_set.cc
@@ -661,7 +661,10 @@ static void do_relax_face_sets_brush_task_cb_ex(void *__restrict userdata,
   BKE_pbvh_vertex_iter_end;
 }
 
-ATTR_NO_OPT void SCULPT_do_draw_face_sets_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode)
+ATTR_NO_OPT void SCULPT_do_draw_face_sets_brush(Sculpt *sd,
+                                                Object *ob,
+                                                PBVHNode **nodes,
+                                                int totnode)
 {
   SculptSession *ss = ob->sculpt;
   Brush *brush = ss->cache->brush ? ss->cache->brush : BKE_paint_brush(&sd->paint);
@@ -2778,7 +2781,7 @@ static int sculpt_face_set_edit_modal(bContext *C, wmOperator *op, const wmEvent
 
   mul_v3_m4v3(depth_world_space, ob->obmat, fsecd->cursor_location);
 
-  float fmval[2] = {event->mval[0], event->mval[1]};
+  float fmval[2] = {(float)event->mval[0], (float)event->mval[1]};
 
   ED_view3d_win_to_3d(vc.v3d, vc.region, depth_world_space, fmval, new_pos);
   float extrude_disp = len_v3v3(depth_world_space, new_pos);
@@ -2854,7 +2857,7 @@ static void sculpt_face_set_extrude(bContext *C,
 
   fsecd->active_face_set = active_face_set;
   copy_v3_v3(fsecd->cursor_location, cursor_location);
-  float fmval[2] = {event->mval[0], event->mval[1]};
+  float fmval[2] = {(float)event->mval[0], (float)event->mval[1]};
   copy_v2_v2(fsecd->init_mval, fmval);
   op->customdata = fsecd;



More information about the Bf-blender-cvs mailing list