ok, apparently didn't commit this either. apparently includes a merge with trunk...
[blender.git] / intern / ghost / intern / GHOST_System.cpp
index 87e5f375958511fa1f5596d52a8ffcd30a151db5..79d8389ffc6d6f24fc337f8fccce042e4133d6de 100644 (file)
@@ -275,7 +275,6 @@ GHOST_TSuccess GHOST_System::getButtonState(GHOST_TButtonMask mask, bool& isDown
        return success;
 }
 
-
 GHOST_TSuccess GHOST_System::init()
 {
        m_timerManager = new GHOST_TimerManager ();
@@ -290,7 +289,8 @@ GHOST_TSuccess GHOST_System::init()
        
 #ifdef GHOST_DEBUG
        if (m_eventManager) {
-               m_eventManager->addConsumer(&m_eventPrinter);
+               m_eventPrinter = new GHOST_EventPrinter();
+               m_eventManager->addConsumer(m_eventPrinter);
        }
 #endif // GHOST_DEBUG