D2830 - 2.8: Fix crash when creating new action

Patch by: Marcelo Mutzbauer (1xundoredo)
This commit is contained in:
Joshua Leung 2017-09-27 14:16:07 +13:00
parent 9bd40cbce1
commit 32e453b495
1 changed files with 2 additions and 1 deletions

View File

@ -1306,10 +1306,11 @@ static void rna_SpaceDopeSheetEditor_action_set(PointerRNA *ptr, PointerRNA valu
}
}
static void rna_SpaceDopeSheetEditor_action_update(Main *bmain, bContext *C, Scene *UNUSED(scene), PointerRNA *ptr)
static void rna_SpaceDopeSheetEditor_action_update(bContext *C, PointerRNA *ptr)
{
SpaceAction *saction = (SpaceAction *)(ptr->data);
SceneLayer *sl = CTX_data_scene_layer(C);
Main *bmain = CTX_data_main(C);
Object *obact = OBACT_NEW(sl);
/* we must set this action to be the one used by active object (if not pinned) */