change camera to top if switching to draw mode in free camera

Tue, 16 Jul 2013 02:47:11 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Tue, 16 Jul 2013 02:47:11 +0300
changeset 392
629e3142d02d
parent 391
beef61ce962a
child 393
01fffd08c25a

change camera to top if switching to draw mode in free camera

changelog.txt file | annotate | diff | comparison | revisions
src/gldraw.cpp file | annotate | diff | comparison | revisions
--- a/changelog.txt	Tue Jul 16 02:45:13 2013 +0300
+++ b/changelog.txt	Tue Jul 16 02:47:11 2013 +0300
@@ -5,6 +5,7 @@
 	of currently open files.
 		- Added close, close all and save all actions.
 - Color icon border now reflects the color's edge color.
+- Changing to draw mode while in free camera now causes the camera to be changed to top.
 
 =================================================
 == Changes in version 0.2-alpha
--- a/src/gldraw.cpp	Tue Jul 16 02:45:13 2013 +0300
+++ b/src/gldraw.cpp	Tue Jul 16 02:47:11 2013 +0300
@@ -1203,8 +1203,9 @@
 		break;
 	
 	case Draw:
+		// Cannot draw into the free camera - use top instead.
 		if (m_camera == Free)
-			return; // Cannot draw with the free camera
+			setCamera (Top);
 		
 		// Disable the context menu - we need the right mouse button
 		// for removing vertices.

mercurial