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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-10-03 01:21:05 +0400
committerTon Roosendaal <ton@blender.org>2005-10-03 01:21:05 +0400
commitb8442c531afe5df8d7d5ec3326423fb2dd1570c1 (patch)
treef6ddc6d9250729fee8a6fb4dfc537a3cd1fb04cf /source
parentf342f069201b9b53526e2e650050ce7bc0e38431 (diff)
Driver fix; entering a non-existant object name in driver Panel crashed.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawipo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c
index f2546d20d39..1b48538d5f5 100644
--- a/source/blender/src/drawipo.c
+++ b/source/blender/src/drawipo.c
@@ -1715,10 +1715,11 @@ void do_ipobuts(unsigned short event)
if(ei->icu->driver) {
IpoDriver *driver= ei->icu->driver;
- /* check if type is still OK */
- if(driver->ob->type==OB_ARMATURE && driver->blocktype==ID_AR);
- else driver->blocktype= ID_OB;
-
+ if(driver->ob) {
+ /* check if type is still OK */
+ if(driver->ob->type==OB_ARMATURE && driver->blocktype==ID_AR);
+ else driver->blocktype= ID_OB;
+ }
DAG_scene_sort(G.scene);
if(G.sipo->blocktype==ID_KE || G.sipo->blocktype==ID_AC)