forked from bartvdbraak/blender
Bugfix;
Ipo window could crash on reading old files with keys, non proper use of pointer...
This commit is contained in:
parent
b5117eb8fd
commit
7382a3d9d9
@ -1532,7 +1532,7 @@ static void ipo_editvertex_buts(uiBlock *block, SpaceIpo *si, float min, float m
|
||||
Key *key= (Key *)G.sipo->from;
|
||||
KeyBlock *kb;
|
||||
|
||||
if(key==0) return;
|
||||
if(key==NULL || ob->shapenr==0) return;
|
||||
iskey= 1;
|
||||
|
||||
kb= BLI_findlink(&key->block, ob->shapenr-1);
|
||||
@ -1574,7 +1574,7 @@ static void ipo_editvertex_buts(uiBlock *block, SpaceIpo *si, float min, float m
|
||||
Key *key= (Key *)G.sipo->from;
|
||||
KeyBlock *kb;
|
||||
|
||||
if(key==NULL) return;
|
||||
if(key==NULL || ob->shapenr==0) return;
|
||||
|
||||
kb= BLI_findlink(&key->block, ob->shapenr-1);
|
||||
kb->pos+= median[1];
|
||||
|
Loading…
Reference in New Issue
Block a user