diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-18 06:49:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-18 06:49:28 +0300 |
commit | 2431e8e045f9fee8454ecd97f287d0e171b1ee94 (patch) | |
tree | 74e1e73222edf41b168002603d84dceb1c440f26 /source/blender/editors/gpencil/gpencil_paint.c | |
parent | 8cf1184c045d37b7aecd5b8a08ecefefeed17850 (diff) |
bgl.Buffer()
- invalid dimension type could be passed without raising an error.
- negative dimensions could crash blender, now they raise errors.
- zero length dimension arg was not detected.
- floating point lengths were accepted, now only allow ints.
also comment unused vars.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 86f3e3c0b91..baa6f7d6a25 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -899,8 +899,8 @@ static tGPsdata *gp_session_initpaint (bContext *C) /* supported views first */ case SPACE_VIEW3D: { - View3D *v3d= curarea->spacedata.first; - RegionView3D *rv3d= ar->regiondata; + // View3D *v3d= curarea->spacedata.first; + // RegionView3D *rv3d= ar->regiondata; /* set current area * - must verify that region data is 3D-view (and not something else) |