diff --git a/eeschema/sch_base_frame.cpp b/eeschema/sch_base_frame.cpp index 011533cb48..6e0cba38dc 100644 --- a/eeschema/sch_base_frame.cpp +++ b/eeschema/sch_base_frame.cpp @@ -86,8 +86,10 @@ SCH_BASE_FRAME::SCH_BASE_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aWindo const wxSize& aSize, long aStyle, const wxString& aFrameName ) : EDA_DRAW_FRAME( aKiway, aParent, aWindowType, aTitle, aPosition, aSize, aStyle, aFrameName ), - m_base_frame_defaults( nullptr, "base_Frame_defaults" ), - m_spaceMouse( nullptr ) + m_base_frame_defaults( nullptr, "base_Frame_defaults" ) +#if defined( KICAD_USE_3DCONNEXION ) + ,m_spaceMouse( nullptr ) +#endif { createCanvas();