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:
authorTon Roosendaal <ton@blender.org>2004-07-09 12:15:57 +0400
committerTon Roosendaal <ton@blender.org>2004-07-09 12:15:57 +0400
commitec64e0d743dc39edcb9d8a2f065bafc05ec198a1 (patch)
tree1e0e70d38ddc89102283f9df6f989272648fbc19 /source/blender/src/buttons_editing.c
parentf77bc7eb7d56239f9dfab3663b79c474f8763bbd (diff)
Two little fixes in administrating new Mesh edges. Solves crash when
joining newly created (Added) Mesh with others...
Diffstat (limited to 'source/blender/src/buttons_editing.c')
-rw-r--r--source/blender/src/buttons_editing.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index ab811055f20..33021c7d17f 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -1840,7 +1840,10 @@ void do_meshbuts(unsigned short event)
case B_MAKEEDGES:
/* in editmode we only have to set edge pointer */
- if(ob==G.obedit) me->medge= MEM_callocN(sizeof(MEdge), "fake mesh edge");
+ if(ob==G.obedit) {
+ me->medge= MEM_callocN(sizeof(MEdge), "fake mesh edge");
+ me->totedge= 1;
+ }
else make_edges(me);
allqueue(REDRAWBUTSEDIT, 0);
break;