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>2005-10-03 01:29:28 +0400
committerTon Roosendaal <ton@blender.org>2005-10-03 01:29:28 +0400
commit2f590af596a574554cb02607b6f5df8224286563 (patch)
tree0ed9c8c5160636d5fab7689c2d98d3b0215ccb02 /source/blender/src/header_ipo.c
parentb8442c531afe5df8d7d5ec3326423fb2dd1570c1 (diff)
Ipowindow header: Curve menu crashed when no curve was created yet.
Diffstat (limited to 'source/blender/src/header_ipo.c')
-rw-r--r--source/blender/src/header_ipo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/header_ipo.c b/source/blender/src/header_ipo.c
index 06e7e418224..4d4a7d25e4b 100644
--- a/source/blender/src/header_ipo.c
+++ b/source/blender/src/header_ipo.c
@@ -414,7 +414,7 @@ static uiBlock *ipo_editmenu(void *arg_unused)
ei = get_active_editipo();
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
- if(ei->icu && ei->icu->driver)
+ if(ei && ei->icu && ei->icu->driver)
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Insert 1:1 Curve...|I", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 3, "");
else
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Insert Keyframe...|I", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 3, "");