Grease Pencil bugfix:
Disabled fancy 'dot' drawing for Image Editor. This is still just a quick-fix (like for fancy strokes), and it would be nice to get the scaling right someday.
This commit is contained in:
@@ -433,13 +433,18 @@ static void gp_draw_stroke_point (bGPDspoint *points, short thickness, short sfl
|
||||
co[1]= (points->y / 1000 * winy);
|
||||
}
|
||||
|
||||
/* if thickness is less than GP_DRAWTHICKNESS_SPECIAL, simple opengl point will do */
|
||||
if (thickness < GP_DRAWTHICKNESS_SPECIAL) {
|
||||
/* if thickness is less than GP_DRAWTHICKNESS_SPECIAL, simple dot looks ok
|
||||
* - also mandatory in if Image Editor 'image-based' dot
|
||||
*/
|
||||
if ( (thickness < GP_DRAWTHICKNESS_SPECIAL) ||
|
||||
((curarea->spacetype==SPACE_IMAGE) && (sflag & GP_STROKE_2DSPACE)) )
|
||||
{
|
||||
glBegin(GL_POINTS);
|
||||
glVertex2fv(co);
|
||||
glEnd();
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
/* draw filled circle as is done in circf (but without the matrix push/pops which screwed things up) */
|
||||
GLUquadricObj *qobj = gluNewQuadric();
|
||||
|
||||
@@ -495,7 +500,7 @@ static void gp_draw_stroke (bGPDspoint *points, int totpoints, short thickness,
|
||||
short debug, int offsx, int offsy, int winx, int winy)
|
||||
{
|
||||
/* if thickness is less than GP_DRAWTHICKNESS_SPECIAL, 'smooth' opengl lines look better
|
||||
* - but NOT if Image Editor 'image-based' stroke
|
||||
* - 'smooth' opengl lines are also required if Image Editor 'image-based' stroke
|
||||
*/
|
||||
if ( (thickness < GP_DRAWTHICKNESS_SPECIAL) ||
|
||||
((curarea->spacetype==SPACE_IMAGE) && (dflag & GP_DRAWDATA_ONLYV2D)) )
|
||||
|
||||
Reference in New Issue
Block a user