From cf84cf5f211475dc72cffe0ebba85e2ad91fee6b Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 28 Apr 2008 05:14:26 +0000 Subject: [PATCH] Bugfix: The Outliner was being built incorrectly, leading to fake "IPO-Driver"-linked objects being shown under IPO's. These were caused by a missing break statement, which lead to the IPO case flowing on to the Action case. This could cause crashes with undo on some computers. --- source/blender/src/outliner.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c index d66118ae1fc..a887a6f1751 100644 --- a/source/blender/src/outliner.c +++ b/source/blender/src/outliner.c @@ -830,15 +830,16 @@ static TreeElement *outliner_add_element(SpaceOops *soops, ListBase *lb, void *i IpoCurve *icu; Object *lastadded= NULL; - for(icu= ipo->curve.first; icu; icu= icu->next) { - if(icu->driver && icu->driver->ob) { - if(lastadded!=icu->driver->ob) { + for (icu= ipo->curve.first; icu; icu= icu->next) { + if (icu->driver && icu->driver->ob) { + if (lastadded != icu->driver->ob) { outliner_add_element(soops, &te->subtree, icu->driver->ob, te, TSE_LINKED_OB, 0); lastadded= icu->driver->ob; } } } } + break; case ID_AC: { bAction *act= (bAction *)id;