Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-13 19:30:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-13 19:30:26 +0400
commitfa63c297753636c149fbb1a3877d9b3d93601357 (patch)
treeab84c6c5dcc5e6463fa398935ae06e53b7b64868 /source
parent9ba543a5225977f1ef88c35c97e6315758a27d67 (diff)
work-around for grease pencil single points in the image view drawing really large (bigger then the image).
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gpencil/drawgpencil.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c
index 74e7cae93f5..598c0e5fa26 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -161,7 +161,7 @@ static void gp_draw_stroke_point (bGPDspoint *points, short thickness, short sfl
glEnd();
}
else {
- int spacetype= 0; // XXX make local gpencil state var?
+ // int spacetype= 0; // XXX make local gpencil state var?
float co[2];
/* get coordinates of point */
@@ -181,8 +181,12 @@ static void gp_draw_stroke_point (bGPDspoint *points, short thickness, short sfl
/* if thickness is less than GP_DRAWTHICKNESS_SPECIAL, simple dot looks ok
* - also mandatory in if Image Editor 'image-based' dot
*/
+#if 0
if ( (thickness < GP_DRAWTHICKNESS_SPECIAL) ||
((spacetype==SPACE_IMAGE) && (sflag & GP_STROKE_2DSPACE)) )
+#else
+ if(1) /* when spacetype is back uncomment the check above */
+#endif
{
glBegin(GL_POINTS);
glVertex2fv(co);