Update the rect vertices right after rect draw mode is entered so that the old values don't remain to spook around

2013-06-13

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 13 Jun 2013 03:12:34 +0300 (2013-06-13)
changeset 281
7904abfbdcef
parent 280
b8c2d4e8c2c1
child 282
c890f42c8054

Update the rect vertices right after rect draw mode is entered so that the old values don't remain to spook around

src/gldraw.cpp file | annotate | diff | comparison | revisions
--- a/src/gldraw.cpp	Thu Jun 13 03:08:17 2013 +0300
+++ b/src/gldraw.cpp	Thu Jun 13 03:12:34 2013 +0300
@@ -888,8 +888,10 @@
 					return;
 				}
 				
-				if (m_drawedVerts.size () == 0 && ev->modifiers () & Qt::ShiftModifier)
+				if (m_drawedVerts.size () == 0 && ev->modifiers () & Qt::ShiftModifier) {
 					m_rectdraw = true;
+					updateRectVerts ();
+				}
 			}
 			
 			addDrawnVertex (m_hoverpos);

mercurial