Revision: 6795
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6795&view=rev
Author:   jeremy_asher
Date:     2008-07-07 16:24:17 -0700 (Mon, 07 Jul 2008)

Log Message:
-----------
Fixed canvas dragging in perspective mode

Modified Paths:
--------------
    code/stage/trunk/libstage/canvas.cc

Modified: code/stage/trunk/libstage/canvas.cc
===================================================================
--- code/stage/trunk/libstage/canvas.cc 2008-07-07 23:15:09 UTC (rev 6794)
+++ code/stage/trunk/libstage/canvas.cc 2008-07-07 23:24:17 UTC (rev 6795)
@@ -365,7 +365,12 @@
                        else {
                                // started dragging on empty space or an
                                //  unselected model, move the canvas
-                               camera.move( -dx, dy );
+                               if( perspectiveCam == true ) {
+                                       perspective_camera.move( -dx, dy, 0.0 );
+                               } 
+                               else {
+                                       camera.move( -dx, dy );
+                               }
                                invalidate(); // so the projection gets updated
                        }
                }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to