From 0ad2726f31c2598676ca1ca78af3e29818768cc2 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 20 Aug 2022 08:06:51 -0700 Subject: [PATCH] Avoid spacemouse if not defined --- eeschema/sch_base_frame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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();