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:
Diffstat (limited to 'source/blender/src/drawipo.c')
-rw-r--r--source/blender/src/drawipo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c
index 293c1c2aed0..36cf21d3114 100644
--- a/source/blender/src/drawipo.c
+++ b/source/blender/src/drawipo.c
@@ -1839,6 +1839,10 @@ void do_ipobuts(unsigned short event)
if(ei) {
if(ei->icu==NULL) {
ei->icu= verify_ipocurve(G.sipo->from, G.sipo->blocktype, G.sipo->actname, G.sipo->constname, ei->adrcode);
+ if (!ei->icu) {
+ error("Could not add a driver to this curve, may be linked data!");
+ break;
+ }
ei->flag |= IPO_SELECT;
ei->icu->flag= ei->flag;
}