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>2014-09-02 08:31:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-09-02 08:35:56 +0400
commit6b3ec0c515394419205b6d6e8b0945916f3ce9a1 (patch)
tree9fd65ae6f1e59f7d3ce1824bbdb5355783008cb5 /source/blender/bmesh/intern/bmesh_operators.c
parent39c7ccca1ec500b087114236c9b0dff3814dadf9 (diff)
Fix editmesh-connect with hidden geometry
- ignore hidden faces & verts - when cutting a pair, select edges co-linear to the cut. Also support creating a buffer from hidden elem's even if BMO_FLAG_RESPECT_HIDE is enabled. (if the hflag used includes BM_ELEM_HIDDEN).
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_operators.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_operators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c
index a4e03b1984a..b041c010c22 100644
--- a/source/blender/bmesh/intern/bmesh_operators.c
+++ b/source/blender/bmesh/intern/bmesh_operators.c
@@ -815,7 +815,7 @@ static void bmo_slot_buffer_from_hflag(BMesh *bm, BMOperator *op, BMOpSlot slot_
{
BMOpSlot *output = BMO_slot_get(slot_args, slot_name);
int totelement = 0, i = 0;
- const bool respecthide = (op->flag & BMO_FLAG_RESPECT_HIDE) != 0;
+ const bool respecthide = ((op->flag & BMO_FLAG_RESPECT_HIDE) != 0) && ((hflag & BM_ELEM_HIDDEN) == 0);
BLI_assert(output->slot_type == BMO_OP_SLOT_ELEMENT_BUF);
BLI_assert(((output->slot_subtype.elem & BM_ALL_NOLOOP) & htype) == htype);