Inserting keys (using Ikey in 3d window) could crash if you have objects
selected, but no active.
This commit is contained in:
Ton Roosendaal
2007-01-21 13:03:46 +00:00
parent c3c37b2d88
commit abdc138acc
2 changed files with 4 additions and 4 deletions

View File

@@ -2729,7 +2729,7 @@ void common_insertkey(void)
else {
base= FIRSTBASE;
while(base) {
if TESTBASELIB(base) break;
if (TESTBASELIB(base)) break;
base= base->next;
}
if(base==NULL) return;
@@ -2852,12 +2852,12 @@ void common_insertkey(void)
else {
base= FIRSTBASE;
while(base) {
if TESTBASELIB(base) {
if (TESTBASELIB(base)) {
char *actname= NULL;
id= (ID *)(base->object);
if(ob->ipoflag & OB_ACTION_OB)
if(base->object->ipoflag & OB_ACTION_OB)
actname= "Object";
/* all curves in ipo deselect */

View File

@@ -3651,7 +3651,7 @@ void drawscredge_area(ScrArea *sa)
unsigned int screen_view3d_layers(void)
{
ScrArea *sa;
int layer= 0;
int layer= G.scene->lay; /* as minimum this */
for(sa= G.curscreen->areabase.first; sa; sa= sa->next) {
if(sa->spacetype==SPACE_VIEW3D)