[Bf-blender-cvs] [7d618036404] blender2.8: Sculpt: Fix crash when using grab brush

Sergey Sharybin noreply at git.blender.org
Thu May 3 17:48:00 CEST 2018


Commit: 7d6180364041553e49a9d3b25de57c73299da8a0
Author: Sergey Sharybin
Date:   Thu May 3 17:42:46 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB7d6180364041553e49a9d3b25de57c73299da8a0

Sculpt: Fix crash when using grab brush

Was wrong paint structure deducted from context.

Test plan:

With default cube, go to sculpt mode, switch to grab brush
and try to sculpt.

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

M	source/blender/blenkernel/intern/paint.c

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

diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c
index a63777dd5ad..4056a15fe47 100644
--- a/source/blender/blenkernel/intern/paint.c
+++ b/source/blender/blenkernel/intern/paint.c
@@ -214,8 +214,7 @@ Paint *BKE_paint_get_active_from_context(const bContext *C)
 			}
 		}
 		else {
-			/* default to image paint */
-			return &ts->imapaint.paint;
+			return BKE_paint_get_active(sce, view_layer);
 		}
 	}



More information about the Bf-blender-cvs mailing list