src/gldraw.cpp

changeset 296
d544de09c93b
parent 291
c8547f780861
child 307
c731a22899a3
--- a/src/gldraw.cpp	Sun Jun 16 00:58:20 2013 +0300
+++ b/src/gldraw.cpp	Sun Jun 16 01:39:19 2013 +0300
@@ -244,7 +244,7 @@
 		obj->getType () != LDObject::CondLine)
 	{
 		if (list == GL::BFCFrontList)
-			qcol = QColor (80, 192, 0);
+			qcol = QColor (40, 192, 0);
 		else
 			qcol = QColor (224, 0, 0);
 	} else {
@@ -551,14 +551,14 @@
 				pen.setWidth (2);
 				pen.setColor (luma (m_bgcolor) < 40 ? Qt::white : Qt::black);
 				paint.setPen (pen);
-				paint.setBrush (QColor (128, 192, 0, 128));
+				paint.setBrush (QColor (64, 192, 0, 128));
 				paint.drawPolygon (poly, numverts);
 				
 				// Draw vertex blips
 				pen = m_thinBorderPen;
 				pen.setWidth (1);
 				paint.setPen (pen);
-				paint.setBrush (QColor (128, 192, 0));
+				paint.setBrush (QColor (64, 192, 0));
 				
 				for (ushort i = 0; i < numverts; ++i) {
 					QPoint& blip = poly[i];
@@ -643,7 +643,7 @@
 			y1 = m_pos.y ();
 		
 		QRect rect (x0, y0, x1 - x0, y1 - y0);
-		QColor fillColor = (m_addpick ? "#80FF00" : "#00CCFF");
+		QColor fillColor = (m_addpick ? "#40FF00" : "#00CCFF");
 		fillColor.setAlphaF (0.2f);
 		
 		paint.setPen (m_thickBorderPen);
@@ -1579,6 +1579,9 @@
 }
 
 void GLRenderer::mouseDoubleClickEvent (QMouseEvent* ev) {
+	if (!(ev->buttons () & Qt::LeftButton) || editMode () != Select)
+		return;
+	
 	pick (ev->x (), ev->y ());
 	
 	if (g_win->sel ().size () == 0)

mercurial