[Bf-blender-cvs] [022a481789e] blender2.8: Fix error in object-mode removal

Campbell Barton noreply at git.blender.org
Thu Feb 8 12:00:09 CET 2018


Commit: 022a481789efc40297acc5b7a3c9efbe4a75bc27
Author: Campbell Barton
Date:   Thu Feb 8 21:58:45 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB022a481789efc40297acc5b7a3c9efbe4a75bc27

Fix error in object-mode removal

Wasn't setting transform context

===================================================================

M	source/blender/editors/transform/transform_generics.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list