← Back to team overview

kicad-developers team mailing list archive

Re: Some new sweet features on the new 3D-Viewer

 

Hi, Mário.

Just a small fix to compile the new 3d viewer on Windows/msys2 and
wxWidgets 3.1 in attached file.

The new 3d viewer looks fine now.

I just have (on W7) frequent freeze of the display.
Just iconize and "un-iconize" the 3d viewer frame restarts the
display... for a few commands.

-- 
Jean-Pierre CHARRAS
=== modified file '3d-viewer/3d_canvas/eda_3d_canvas.cpp'
--- 3d-viewer/3d_canvas/eda_3d_canvas.cpp	2016-03-08 00:00:10 +0000
+++ 3d-viewer/3d_canvas/eda_3d_canvas.cpp	2016-03-08 09:01:49 +0000
@@ -45,6 +45,7 @@
  *  more information.
  */
 const wxChar * EDA_3D_CANVAS::m_logTrace = wxT( "KI_TRACE_EDA_3D_CANVAS" );
+const float EDA_3D_CANVAS::m_delta_move_step_factor = 0.7f;
 
 
 BEGIN_EVENT_TABLE( EDA_3D_CANVAS, wxGLCanvas )
@@ -390,7 +391,7 @@
     if( m_camera_is_moving )
         return;
 
-    m_is_moving_mouse = true;
+    //m_is_moving_mouse = true;
     restart_editingTimeOut_Timer();
 
     float magnification = ( event.GetMagnification() + 1.0f );

=== modified file '3d-viewer/3d_canvas/eda_3d_canvas.h'
--- 3d-viewer/3d_canvas/eda_3d_canvas.h	2016-03-07 17:23:34 +0000
+++ 3d-viewer/3d_canvas/eda_3d_canvas.h	2016-03-08 08:54:46 +0000
@@ -161,8 +161,8 @@
 
     bool m_is_opengl_initialized;
 
-    static const float m_delta_move_step_factor = 0.7f;
-    
+    static const float m_delta_move_step_factor;
+
     /**
      *  Trace mask used to enable or disable the trace output of this class.
      *  The debug output can be turned on by setting the WXTRACE environment variable to


Follow ups

References