[Bf-blender-cvs] [ddb0dc25277] master: Fix knife tool missing refresh changing the lock axes

Campbell Barton noreply at git.blender.org
Mon Sep 27 08:28:26 CEST 2021


Commit: ddb0dc252777d3af1e80d6767b0e35f326d34df6
Author: Campbell Barton
Date:   Mon Sep 27 14:40:07 2021 +1000
Branches: master
https://developer.blender.org/rBddb0dc252777d3af1e80d6767b0e35f326d34df6

Fix knife tool missing refresh changing the lock axes

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

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 341119270c2..eaecda28287 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -4672,6 +4672,8 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event)
       kcd->axis_constrained = (kcd->constrain_axis != KNF_CONSTRAIN_AXIS_NONE);
       knifetool_disable_angle_snapping(kcd);
       knife_update_header(C, op, kcd);
+      ED_region_tag_redraw(kcd->region);
+      do_refresh = true;
     }
   }



More information about the Bf-blender-cvs mailing list