diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-07 16:38:31 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-07 16:38:31 +0300 |
commit | 8a2db3ed21c0eff7ee293c6a24c614283a8ed73f (patch) | |
tree | 177a65a3e68ed47aa70dd81b490ae878b4e80753 /source/blender/editors/transform | |
parent | 624294063910ad3c6459702a7e6aac592db3a720 (diff) |
Fix crash due to missing init of new bAnimContext bmain member in transform code.
From own previous G.main-busting commit.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index ca41a319b1d..fec98c77c19 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -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; |