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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user