[Bf-blender-cvs] [eb0d430b4dd] blender2.8: Fix crash with particle cut brush and other brushes

Mai Lavelle noreply at git.blender.org
Thu Feb 15 09:37:46 CET 2018


Commit: eb0d430b4dde44958a6e3dd583cd2f5718af5516
Author: Mai Lavelle
Date:   Thu Feb 8 00:15:09 2018 -0500
Branches: blender2.8
https://developer.blender.org/rBeb0d430b4dde44958a6e3dd583cd2f5718af5516

Fix crash with particle cut brush and other brushes

Why is bedit->data.context NULL?

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

M	source/blender/editors/physics/particle_edit.c

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

diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index c0498f6ab19..98bd2f9d247 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -3869,6 +3869,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
 	     (sqrtf(dx * dx + dy * dy) > pset->brush[PE_BRUSH_ADD].step) : (dx != 0 || dy != 0)) || bedit->first)
 	{
 		PEData data= bedit->data;
+		data.context = C; // TODO(mai): why isnt this set in bedit->data?
 
 		view3d_operator_needs_opengl(C);
 		selected= (short)count_selected_keys(scene, edit);



More information about the Bf-blender-cvs mailing list