diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-03 01:29:28 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-03 01:29:28 +0400 |
commit | 2f590af596a574554cb02607b6f5df8224286563 (patch) | |
tree | 0ed9c8c5160636d5fab7689c2d98d3b0215ccb02 /source/blender/src/header_ipo.c | |
parent | b8442c531afe5df8d7d5ec3326423fb2dd1570c1 (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.c | 2 |
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, ""); |