Using the "RVK" sliders in Action window, on a Library-linked Mesh, crashed
due to using a NULL pointer. Added menu warning.
This commit is contained in:
Ton Roosendaal 2006-05-13 13:39:40 +00:00
parent b0c5df16f6
commit bc124747f7

@ -169,7 +169,6 @@ static void rvk_slider_func(void *voidob, void *voidkeynum)
* for this frame * for this frame
*/ */
bezt = get_bezt_icu_time(icu, &cfra, &rvkval); bezt = get_bezt_icu_time(icu, &cfra, &rvkval);
}
/* create the bezier triple if one doesn't exist, /* create the bezier triple if one doesn't exist,
* otherwise modify it's value * otherwise modify it's value
@ -189,6 +188,8 @@ static void rvk_slider_func(void *voidob, void *voidkeynum)
ob->shapeflag &= ~OB_SHAPE_TEMPLOCK; ob->shapeflag &= ~OB_SHAPE_TEMPLOCK;
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
}
else error("Cannot edit this Shape Key");
allqueue (REDRAWVIEW3D, 0); allqueue (REDRAWVIEW3D, 0);
allqueue (REDRAWACTION, 0); allqueue (REDRAWACTION, 0);