[Bf-blender-cvs] [78c92d7] GPencil_Editing_Stage3: GP Sculpt: Fix for random crashes - forgot to adjust array size when adding new brush types

Joshua Leung noreply at git.blender.org
Sat Jul 11 06:55:35 CEST 2015


Commit: 78c92d70803f2e733d8f347a321af8a25d18bf9d
Author: Joshua Leung
Date:   Sat Jul 11 16:54:55 2015 +1200
Branches: GPencil_Editing_Stage3
https://developer.blender.org/rB78c92d70803f2e733d8f347a321af8a25d18bf9d

GP Sculpt: Fix for random crashes - forgot to adjust array size when adding new brush types

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

M	source/blender/makesdna/DNA_scene_types.h

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

diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index 150f23d..5d170b2 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -1075,6 +1075,7 @@ typedef enum eGP_EditBrush_Types {
 	GP_EDITBRUSH_TYPE_PINCH     = 5,
 	GP_EDITBRUSH_TYPE_RANDOMISE = 6,
 	
+	/* !!! Update GP_EditBrush_Data brush[###]; below !!! */
 	TOT_GP_EDITBRUSH_TYPES
 } eGP_EditBrush_Types;
 
@@ -1104,7 +1105,7 @@ typedef enum eGP_EditBrush_Flag {
 
 /* GPencil Stroke Sculpting Settings */
 typedef struct GP_BrushEdit_Settings {
-	GP_EditBrush_Data brush[4];   /* 4 = TOT_GP_EDITBRUSH_TYPES */
+	GP_EditBrush_Data brush[7];   /* TOT_GP_EDITBRUSH_TYPES */
 	void *paintcursor;            /* runtime */
 	
 	int brushtype;                /* eGP_EditBrush_Types */




More information about the Bf-blender-cvs mailing list