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:
authorJoshua Leung <aligorith@gmail.com>2008-04-28 09:14:26 +0400
committerJoshua Leung <aligorith@gmail.com>2008-04-28 09:14:26 +0400
commitcf84cf5f211475dc72cffe0ebba85e2ad91fee6b (patch)
treef027f5a741cc4f6242949ef24dab103089eddc20 /source
parent5b691071cf95041d869610081d32f9761bd02c94 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/outliner.c7
1 files 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;