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>2009-10-17 20:52:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-10-17 20:52:09 +0400
commit484bf962c66a5ffb7592cf8e4b462dbfb8d21214 (patch)
treeb6815a99cac350d080d4cdb86b96cbb2119ff907 /source/blender/editors/mesh/editmesh_tools.c
parentbdafc20cffe740e45ee00dba70ab5358a22f4dcb (diff)
simple fix for blend from shape when no keys exist
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 30fda95cf9b..c44d63666c2 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -94,10 +94,8 @@ editmesh_tool.c: UI called tools for editmesh, geometry changes here, otherwise
#include "mesh_intern.h"
/* XXX */
-static int extern_qread() {return 0;}
static void waitcursor(int val) {}
static int pupmenu() {return 0;}
-static int qtest() {return 0;}
#define add_numbut(a, b, c, d, e, f, g) {}
/* XXX */
@@ -5083,9 +5081,7 @@ static int blend_from_shape_exec(bContext *C, wmOperator *op)
int add= RNA_int_get(op->ptr, "add");
int blended= 0;
- kb= BLI_findlink(&key->block, shape);
-
- if(kb) {
+ if(key && (kb= BLI_findlink(&key->block, shape))) {
data= kb->data;
for(eve=em->verts.first; eve; eve=eve->next){