[Bf-blender-cvs] [f0b5d47802b] greasepencil-object: GPencil: Remove data from temp struct
Antonio Vazquez
noreply at git.blender.org
Fri Nov 8 20:36:48 CET 2019
Commit: f0b5d47802bd8890cfb53041cec568e774be1e7e
Author: Antonio Vazquez
Date: Fri Nov 8 20:14:15 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rBf0b5d47802bd8890cfb53041cec568e774be1e7e
GPencil: Remove data from temp struct
These variables are not used now.
===================================================================
M source/blender/editors/gpencil/gpencil_vertex_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_vertex_paint.c b/source/blender/editors/gpencil/gpencil_vertex_paint.c
index e55480c1ba8..df875e8385a 100644
--- a/source/blender/editors/gpencil/gpencil_vertex_paint.c
+++ b/source/blender/editors/gpencil/gpencil_vertex_paint.c
@@ -80,11 +80,9 @@ typedef struct tGP_selected {
/* Context for brush operators */
typedef struct tGP_BrushVertexpaintData {
- struct Main *bmain;
Scene *scene;
Object *object;
- ScrArea *sa;
ARegion *ar;
/* Current GPencil datablock */
@@ -313,7 +311,6 @@ static bool gp_vertexpaint_brush_init(bContext *C, wmOperator *op)
gso = MEM_callocN(sizeof(tGP_BrushVertexpaintData), "tGP_BrushVertexpaintData");
op->customdata = gso;
- gso->bmain = CTX_data_main(C);
gso->brush = paint->brush;
gso->is_painting = false;
@@ -327,7 +324,6 @@ static bool gp_vertexpaint_brush_init(bContext *C, wmOperator *op)
gso->scene = scene;
gso->object = ob;
- gso->sa = CTX_wm_area(C);
gso->ar = CTX_wm_region(C);
/* Save mask. */
More information about the Bf-blender-cvs
mailing list