[Bf-blender-cvs] [32e453b4956] blender2.8: D2830 - 2.8: Fix crash when creating new action
Joshua Leung
noreply at git.blender.org
Wed Sep 27 03:16:36 CEST 2017
Commit: 32e453b4956e30c812f5ea60d902f3655da97def
Author: Joshua Leung
Date: Wed Sep 27 14:16:07 2017 +1300
Branches: blender2.8
https://developer.blender.org/rB32e453b4956e30c812f5ea60d902f3655da97def
D2830 - 2.8: Fix crash when creating new action
Patch by: Marcelo Mutzbauer (1xundoredo)
===================================================================
M source/blender/makesrna/intern/rna_space.c
===================================================================
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) */
More information about the Bf-blender-cvs
mailing list