[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46410] trunk/blender/intern/ghost/intern/ GHOST_NDOFManagerX11.cpp: ndof: restored support for older serial port 3D mice on Linux (R45951 broke it, oops)

Mike Erwin significant.bit at gmail.com
Tue May 8 07:04:36 CEST 2012


Revision: 46410
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46410
Author:   merwin
Date:     2012-05-08 05:04:29 +0000 (Tue, 08 May 2012)
Log Message:
-----------
ndof: restored support for older serial port 3D mice on Linux (R45951 broke it, oops)

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45951

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_NDOFManagerX11.cpp

Modified: trunk/blender/intern/ghost/intern/GHOST_NDOFManagerX11.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_NDOFManagerX11.cpp	2012-05-08 01:32:38 UTC (rev 46409)
+++ trunk/blender/intern/ghost/intern/GHOST_NDOFManagerX11.cpp	2012-05-08 05:04:29 UTC (rev 46410)
@@ -37,6 +37,8 @@
 	setDeadZone(0.1f); /* how to calibrate on Linux? throw away slight motion! */
 
 	if (spnav_open() != -1) {
+		m_available = true;
+
 		/* determine exactly which device (if any) is plugged in */
 
 #define MAX_LINE_LENGTH 100
@@ -49,7 +51,6 @@
 				unsigned short vendor_id = 0, product_id = 0;
 				if (sscanf(line, "Bus %*d Device %*d: ID %hx:%hx", &vendor_id, &product_id) == 2)
 					if (setDevice(vendor_id, product_id)) {
-						m_available = true;
 						break; /* stop looking once the first 3D mouse is found */
 					}
 			}




More information about the Bf-blender-cvs mailing list