[Bf-blender-cvs] [7fd71c1694e] master: GPencil: More cleanups missing in previous commit
Antonio Vazquez
noreply at git.blender.org
Fri Mar 27 12:39:27 CET 2020
Commit: 7fd71c1694ebd2d20f9aa8bf594be0b24bd690b9
Author: Antonio Vazquez
Date: Fri Mar 27 12:39:18 2020 +0100
Branches: master
https://developer.blender.org/rB7fd71c1694ebd2d20f9aa8bf594be0b24bd690b9
GPencil: More cleanups missing in previous commit
===================================================================
M source/blender/draw/intern/draw_cache_impl_gpencil.c
M source/blender/editors/gpencil/gpencil_select.c
===================================================================
diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c
index 502bc1a3967..4a474768226 100644
--- a/source/blender/draw/intern/draw_cache_impl_gpencil.c
+++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c
@@ -542,7 +542,6 @@ static void gpencil_sbuffer_stroke_ensure(bGPdata *gpd, bool do_stroke, bool do_
/* Get origin to reproject points. */
float origin[3];
- bGPDlayer *gpl = BKE_gpencil_layer_active_get(gpd);
ToolSettings *ts = scene->toolsettings;
ED_gpencil_drawing_reference_get(scene, ob, ts->gpencil_v3d_align, origin);
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index 997a1d2b354..97f0a578d9d 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -919,7 +919,6 @@ static bool gp_stroke_do_circle_sel(bGPdata *UNUSED(gpd),
if (((!ELEM(V2D_IS_CLIPPED, x0, y0)) && BLI_rcti_isect_pt(rect, x0, y0)) ||
((!ELEM(V2D_IS_CLIPPED, x1, y1)) && BLI_rcti_isect_pt(rect, x1, y1))) {
float mval[2] = {(float)mx, (float)my};
- float mvalo[2] = {(float)mx, (float)my}; /* dummy - this isn't used... */
/* check if point segment of stroke had anything to do with
* eraser region (either within stroke painted, or on its lines)
More information about the Bf-blender-cvs
mailing list