Bugfix #5734
Inserting keys (using Ikey in 3d window) could crash if you have objects selected, but no active.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user