[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4331] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: BProjection: Make the turnable rotation more accurate

geo kgeo kgeogeo at hotmail.com
Tue Feb 26 00:32:45 CET 2013


Revision: 4331
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4331
Author:   kgeogeo
Date:     2013-02-25 23:32:45 +0000 (Mon, 25 Feb 2013)
Log Message:
-----------
BProjection: Make the turnable rotation more accurate

Modified Paths:
--------------
    contrib/py/scripts/addons/space_view3d_paint_bprojection.py

Modified: contrib/py/scripts/addons/space_view3d_paint_bprojection.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2013-02-25 23:15:57 UTC (rev 4330)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2013-02-25 23:32:45 UTC (rev 4331)
@@ -1542,13 +1542,13 @@
         sd.region_3d.view_location = origine
         
         vz = Vector((0,0,1))
-        qz =  Quaternion(vz,-(mx-self.first_mouse.x)*pi/180)
+        qz =  Quaternion(vz,-8*(mx-self.first_mouse.x)/width)
         sd.region_3d.view_rotation.rotate(qz)
         sd.region_3d.update()
 
         vx = Vector((1,0,0))
         vx.rotate(sd.region_3d.view_rotation)        
-        qx =  Quaternion(vx,(my-self.first_mouse.y)*pi/180)        
+        qx =  Quaternion(vx,8*(my-self.first_mouse.y)/height)        
         sd.region_3d.view_rotation.rotate(qx)                
         sd.region_3d.update()
         



More information about the Bf-extensions-cvs mailing list