[Bf-blender-cvs] [68150b666cb] master: Fix T92952: Knife inconsistent angle printout

Cian Jinks noreply at git.blender.org
Wed Jun 1 23:10:00 CEST 2022


Commit: 68150b666cbb1507cc866c0d8c5ee230eb016252
Author: Cian Jinks
Date:   Wed Jun 1 21:20:53 2022 +0100
Branches: master
https://developer.blender.org/rB68150b666cbb1507cc866c0d8c5ee230eb016252

Fix T92952: Knife inconsistent angle printout

Knife could display incorrect snapping angle printout in
header/footer because it was not always updated after angle snapping
calculations.

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

M	source/blender/editors/mesh/editmesh_knife.c

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

diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 5b3487b0a33..c16b82e34bd 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -4672,6 +4672,7 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event)
       case MOUSEMOVE: /* Mouse moved somewhere to select another loop. */
         if (kcd->mode != MODE_PANNING) {
           knifetool_update_mval_i(kcd, event->mval);
+          knife_update_header(C, op, kcd);
 
           if (kcd->is_drag_hold) {
             if (kcd->totlinehit >= 2) {
@@ -4754,6 +4755,7 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event)
     /* We don't really need to update mval,
      * but this happens to be the best way to refresh at the moment. */
     knifetool_update_mval_i(kcd, event->mval);
+    knife_update_header(C, op, kcd);
   }
 
   /* Keep going until the user confirms. */



More information about the Bf-blender-cvs mailing list