Fix crash due to missing init of new bAnimContext bmain member in transform code.

From own previous G.main-busting commit.
This commit is contained in:
Bastien Montagne 2018-06-07 15:38:31 +02:00
parent 6242940639
commit 8a2db3ed21
1 changed files with 2 additions and 0 deletions

View 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;