[Bf-blender-cvs] [dadb99074c5] blender2.8: Fix crash when using sculpt dynamic smooth

Dalai Felinto noreply at git.blender.org
Fri Jun 9 17:33:13 CEST 2017


Commit: dadb99074c54236e9712b7cfe7bce9488eabc578
Author: Dalai Felinto
Date:   Fri Jun 9 17:32:35 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBdadb99074c54236e9712b7cfe7bce9488eabc578

Fix crash when using sculpt dynamic smooth

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

M	source/blender/makesrna/intern/rna_sculpt_paint.c

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

diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 6ff7df92312..ec719d90ef6 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -259,8 +259,9 @@ static int rna_Brush_mode_poll(PointerRNA *ptr, PointerRNA value)
 	return brush->ob_mode & mode;
 }
 
-static void rna_Sculpt_update(bContext *C, Scene *scene, PointerRNA *UNUSED(ptr))
+static void rna_Sculpt_update(bContext *C, PointerRNA *UNUSED(ptr))
 {
+	Scene *scene = CTX_data_scene(C);
 	SceneLayer *sl = CTX_data_scene_layer(C);
 	Object *ob = OBACT_NEW;




More information about the Bf-blender-cvs mailing list