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();
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs