diff options
author | Joshua Leung <aligorith@gmail.com> | 2017-09-27 04:16:07 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2017-09-27 04:16:27 +0300 |
commit | 32e453b4956e30c812f5ea60d902f3655da97def (patch) | |
tree | 38a28de69ac8c06eadd946212642790ac456c8a7 /source/blender/makesrna/intern/rna_space.c | |
parent | 9bd40cbce17fdc6368814f7cdeaef9bca3fcb7e5 (diff) |
D2830 - 2.8: Fix crash when creating new action
Patch by: Marcelo Mutzbauer (1xundoredo)
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 87572018cba..5736df4cb9c 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -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) */ |