Irc reported bug by Sapir: Shape Key factor slider in Edit Buttons crashed

when no ipo window was opened. Was using an old global pointer. fixed!
This commit is contained in:
Ton Roosendaal
2005-10-28 14:24:07 +00:00
parent 1bfc5181f0
commit 146fea2668

View File

@@ -1650,7 +1650,7 @@ Ipo *verify_ipo(ID *from, short blocktype, char *actname, char *constname)
return ob->ipo;
}
else if(blocktype==ID_KE) {
Key *key= ob_get_key((Object *)G.sipo->from);
Key *key= ob_get_key((Object *)from);
if(key) {
if(key->ipo==NULL) {