Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-21 10:42:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-21 10:42:21 +0400
commitf910abaddaec82dde3bd27ae3fa720b37f2359fc (patch)
treea422d3be2bbe278fc35fd06d5cd24356a5386fee /source/blender/editors/mesh/editmesh_rip.c
parent15eb3452ecd96e4d79d438e8c954918639dc283d (diff)
fix error in recent rip refactor, also add comment.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_rip.c')
-rw-r--r--source/blender/editors/mesh/editmesh_rip.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_rip.c b/source/blender/editors/mesh/editmesh_rip.c
index 37b12803962..c68d2a91460 100644
--- a/source/blender/editors/mesh/editmesh_rip.c
+++ b/source/blender/editors/mesh/editmesh_rip.c
@@ -658,13 +658,19 @@ static int edbm_rip_invoke__edge(bContext *C, wmOperator *op, wmEvent *event)
}
}
+ if (!edbm_rip_call_edgesplit(em, op)) {
+ return OPERATOR_CANCELLED;
+ }
+
+ /* note: the output of the bmesh operator is ignored, since we built
+ * the contiguous loop pairs to split already, its possibe that some
+ * edge did not split even though it was tagged which would not work
+ * as expected (but not crash), however there are checks to ensure
+ * tagged edges will split. So far its not been an issue. */
edbm_ripsel_deselect_helper(bm, eloop_pairs,
ar, projectMat, fmval);
MEM_freeN(eloop_pairs);
- if (!edbm_rip_call_edgesplit(em, op)) {
- return OPERATOR_CANCELLED;
- }
return OPERATOR_FINISHED;
}