2.5 Bugfix: Trying to insert/delete keyframes on old-style buttons would crash

Fixed the problems with using uninitialised vars in the calls for inserting keyframes from buttons. Oldstyle buttons (i.e. those without any RNA links, such as the 3D-View header buttons) would crash otherwise.
This commit is contained in:
Joshua Leung 2009-04-09 11:36:12 +00:00
parent a59ee83916
commit 84f3e7d94d

@ -2386,8 +2386,8 @@ void ANIM_OT_delete_keyframe_old (wmOperatorType *ot)
static int insert_key_button_exec (bContext *C, wmOperator *op)
{
Scene *scene= CTX_data_scene(C);
PointerRNA ptr;
PropertyRNA *prop;
PointerRNA ptr = {0};
PropertyRNA *prop= NULL;
char *path;
float cfra= (float)CFRA; // XXX for now, don't bother about all the yucky offset crap
short success= 0;
@ -2449,8 +2449,8 @@ void ANIM_OT_insert_keyframe_button (wmOperatorType *ot)
static int delete_key_button_exec (bContext *C, wmOperator *op)
{
Scene *scene= CTX_data_scene(C);
PointerRNA ptr;
PropertyRNA *prop;
PointerRNA ptr = {0};
PropertyRNA *prop= NULL;
char *path;
float cfra= (float)CFRA; // XXX for now, don't bother about all the yucky offset crap
short success= 0;