Commit: 7210b025aa9251d659e740b7b98d6454133e04ba
Author: Cian Jinks
Date:   Sun Sep 5 16:45:57 2021 +0100
Branches: soc-2021-knife-tools
https://developer.blender.org/rB7210b025aa9251d659e740b7b98d6454133e04ba

Knife: Cut along edges to reposition cut start more easily

After receiving feedback on devtalk, users expressed they wished to be able to 
cut along an edge so they could make further cuts from a new position along the 
edge.
This also adds the potential to implement snapping to a given distance along an 
edge.

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

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 101a15ae636..e0540e8c1e8 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -3081,12 +3081,6 @@ static void knife_find_line_hits(KnifeTool_OpData *kcd)
   for (val = BLI_smallhash_iternew(&kfes, &hiter, (uintptr_t *)&kfe); val;
        val = BLI_smallhash_iternext(&hiter, (uintptr_t *)&kfe)) {
 
-    /* If we intersect any of the vertices, don't attempt to intersect the 
edge. */
-    if (BLI_smallhash_lookup(&kfvs, (intptr_t)kfe->v1) ||
-        BLI_smallhash_lookup(&kfvs, (intptr_t)kfe->v2)) {
-      continue;
-    }
-
     knife_project_v2(kcd, kfe->v1->cageco, se1);
     knife_project_v2(kcd, kfe->v2->cageco, se2);
     int isect_kind = 1;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to