Fix crash due to missing init of new bAnimContext bmain member in transform code.
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 7 Jun 2018 13:38:31 +0000 (15:38 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 7 Jun 2018 13:38:31 +0000 (15:38 +0200)
From own previous G.main-busting commit.

source/blender/editors/transform/transform_generics.c

index ca41a319b1dcf3adec9c39b5ea723e8adaabcfff..fec98c77c1973fc3eaa8bd65e4ef82c6c7a64a92 100644 (file)
@@ -348,6 +348,7 @@ static void recalcData_actedit(TransInfo *t)
 
        /* initialize relevant anim-context 'context' data from TransInfo data */
        /* NOTE: sync this with the code in ANIM_animdata_get_context() */
+       ac.bmain = CTX_data_main(t->context);
        ac.scene = t->scene;
        ac.obact = OBACT;
        ac.sa = t->sa;
@@ -397,6 +398,7 @@ static void recalcData_graphedit(TransInfo *t)
 
        /* initialize relevant anim-context 'context' data from TransInfo data */
        /* NOTE: sync this with the code in ANIM_animdata_get_context() */
+       ac.bmain = CTX_data_main(t->context);
        scene = ac.scene = t->scene;
        ac.obact = OBACT;
        ac.sa = t->sa;