[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36151] trunk/blender/source/blender/ editors/gpencil/drawgpencil.c: work-around for grease pencil single points in the image view drawing really large (bigger then the image).

Campbell Barton ideasman42 at gmail.com
Wed Apr 13 17:30:27 CEST 2011


Revision: 36151
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36151
Author:   campbellbarton
Date:     2011-04-13 15:30:26 +0000 (Wed, 13 Apr 2011)
Log Message:
-----------
work-around for grease pencil single points in the image view drawing really large (bigger then the image).

Modified Paths:
--------------
    trunk/blender/source/blender/editors/gpencil/drawgpencil.c

Modified: trunk/blender/source/blender/editors/gpencil/drawgpencil.c
===================================================================
--- trunk/blender/source/blender/editors/gpencil/drawgpencil.c	2011-04-13 14:43:41 UTC (rev 36150)
+++ trunk/blender/source/blender/editors/gpencil/drawgpencil.c	2011-04-13 15:30:26 UTC (rev 36151)
@@ -161,7 +161,7 @@
 		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 @@
 		/* 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);




More information about the Bf-blender-cvs mailing list