Bugfix #17622: clicking on action IPO in outliner causes crash
authorJoshua Leung <aligorith@gmail.com>
Tue, 16 Sep 2008 06:33:59 +0000 (06:33 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 16 Sep 2008 06:33:59 +0000 (06:33 +0000)
In some cases, no action channels existed, but yet the Outliner displayed some that, when clicked on, would cause a crash.

source/blender/src/outliner.c

index 3f328a0cfb2303d72cf2802a2c1cc0d774cf6dbe..52c5592be386cb3f2f78c5c7007f2effd5c93128 100644 (file)
@@ -1640,7 +1640,8 @@ static int tree_element_active_ipo(SpaceOops *soops, TreeElement *te, int set)
                                if(chan->ipo) a++;
                        }
                        deselect_actionchannels(ob->action, 0);
-                       select_channel(ob->action, chan, SELECT_ADD);
+                       if (chan)
+                               select_channel(ob->action, chan, SELECT_ADD);
                        allqueue(REDRAWACTION, ob->ipowin);
                        allqueue(REDRAWVIEW3D, ob->ipowin);
                }