Commit: 257908c11bee128f1d26449753e954e2b90727c2 Author: Cian Jinks Date: Tue Jun 15 12:37:22 2021 +0100 Branches: soc-2021-knife-tools https://developer.blender.org/rB257908c11bee128f1d26449753e954e2b90727c2
Knife: Snapping increment changes are shown immediately Currently, when a user uses the number keys to input a new snapping angle increment in constrained angle mode it does not visually update until the mouse is jiggled. This patch solves this problem so it now updates as each number is typed. =================================================================== 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 aa7b441f2df..1387e5eee89 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -3091,7 +3091,9 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event) snapping_increment_temp < KNIFE_MAX_ANGLE_SNAPPING_INCREMENT) { kcd->angle_snapping_increment = snapping_increment_temp; } + knife_update_active(C, kcd); knife_update_header(C, op, kcd); + ED_region_tag_redraw(kcd->region); return OPERATOR_RUNNING_MODAL; } } @@ -3156,7 +3158,9 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event) RNA_float_get(op->ptr, "angle_snapping_increment")); knifetool_disable_orientation_locking(kcd); knife_reset_snap_angle_input(kcd); + knife_update_active(C, kcd); knife_update_header(C, op, kcd); + ED_region_tag_redraw(kcd->region); do_refresh = true; handled = true; break; @@ -3275,7 +3279,9 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event) snapping_increment_temp < KNIFE_MAX_ANGLE_SNAPPING_INCREMENT) { kcd->angle_snapping_increment = snapping_increment_temp; } + knife_update_active(C, kcd); knife_update_header(C, op, kcd); + ED_region_tag_redraw(kcd->region); return OPERATOR_RUNNING_MODAL; } } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs