diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-05-02 14:43:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-05-02 14:43:58 +0400 |
commit | bd09b7703a68c2e7e616b6abe694c7ff9924c507 (patch) | |
tree | e9cd93837861e9d6efe6f461c374d02a75711547 /source/blender/src/editmesh.c | |
parent | c3c0c38ad0388d351b88b556277dee4dd783d352 (diff) |
editmesh's seperate was crashing because the em->selected wasnt being flushed along with the seperated data.
easy 1 liner, seperate now clears the selection order linkedList.
Watch out for places where removing verts might not remove the selection order data.
Diffstat (limited to 'source/blender/src/editmesh.c')
-rw-r--r-- | source/blender/src/editmesh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c index 674d9c7d100..0121ad18799 100644 --- a/source/blender/src/editmesh.c +++ b/source/blender/src/editmesh.c @@ -1333,6 +1333,8 @@ void separate_mesh(void) return; } + if(em->selected.first) BLI_freelistN(&(em->selected)); /* clear the selection order */ + EM_selectmode_set(); // enforce full consistant selection flags /* we are going to abuse the system as follows: |