diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-08 13:58:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-08 13:58:45 +0300 |
commit | 022a481789efc40297acc5b7a3c9efbe4a75bc27 (patch) | |
tree | 295b2b14fa8fae672e599ca4496597f1eedbddd5 /source/blender/editors/transform/transform_generics.c | |
parent | 127d515f3d3309b4b9311978b0bcddaa28c65cf5 (diff) |
Fix error in object-mode removal
Wasn't setting transform context
Diffstat (limited to 'source/blender/editors/transform/transform_generics.c')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index d6f2d426d6a..d77a2d87680 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1117,8 +1117,7 @@ static int initTransInfo_edit_pet_to_flag(const int proportional) */ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *event) { - EvaluationContext eval_ctx; - CTX_data_eval_ctx(C, &eval_ctx); + CTX_data_eval_ctx(C, &t->eval_ctx); Depsgraph *depsgraph = CTX_data_depsgraph(C); Scene *sce = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); @@ -1270,7 +1269,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve } } - if (ob && eval_ctx.object_mode & OB_MODE_ALL_PAINT) { + if (ob && t->eval_ctx.object_mode & OB_MODE_ALL_PAINT) { Paint *p = BKE_paint_get_active_from_context(C); if (p && p->brush && (p->brush->flag & BRUSH_CURVE)) { t->options |= CTX_PAINT_CURVE; |