[Bf-blender-cvs] [418e754f4ac] soc-2021-knife-tools: Fix: Knife relative edge for snapping drawn with object space coords
Cian Jinks
noreply at git.blender.org
Fri Aug 13 11:40:12 CEST 2021
Commit: 418e754f4acf551505a2a608828b165b2c00ade8
Author: Cian Jinks
Date: Fri Aug 13 10:39:20 2021 +0100
Branches: soc-2021-knife-tools
https://developer.blender.org/rB418e754f4acf551505a2a608828b165b2c00ade8
Fix: Knife relative edge for snapping drawn with object space coords
It should've been drawn with world space coords.
===================================================================
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 08aad41c5fe..67a1a328452 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -1035,8 +1035,8 @@ static void knifetool_draw(const bContext *UNUSED(C), ARegion *UNUSED(region), v
GPU_line_width(2.0);
immBegin(GPU_PRIM_LINES, 2);
- immVertex3fv(pos, kcd->snap_ref_edge->v1->cageco);
- immVertex3fv(pos, kcd->snap_ref_edge->v2->cageco);
+ immVertex3fv(pos, kcd->snap_ref_edge->v1->wcageco);
+ immVertex3fv(pos, kcd->snap_ref_edge->v2->wcageco);
immEnd();
}
More information about the Bf-blender-cvs
mailing list