X-Git-Url: https://git.blender.org/gitweb/gitweb.cgi/blender.git/blobdiff_plain/525fbb22d22f0c8b8d5e13440fa1328bd56036db..169b0cbee98d9fa789855f345249941ab3963f0d:/intern/ghost/intern/GHOST_Window.cpp diff --git a/intern/ghost/intern/GHOST_Window.cpp b/intern/ghost/intern/GHOST_Window.cpp index 33484284d7c..e89e0274276 100644 --- a/intern/ghost/intern/GHOST_Window.cpp +++ b/intern/ghost/intern/GHOST_Window.cpp @@ -53,6 +53,7 @@ GHOST_Window::GHOST_Window( m_stereoVisual(stereoVisual) { m_isUnsavedChanges = false; + m_canAcceptDragOperation = false; m_cursorGrabAccumPos[0] = 0; m_cursorGrabAccumPos[1] = 0; @@ -154,6 +155,15 @@ GHOST_TSuccess GHOST_Window::setCustomCursorShape(GHOST_TUns8 *bitmap, GHOST_TUn } } +void GHOST_Window::setAcceptDragOperation(bool canAccept) +{ + m_canAcceptDragOperation = canAccept; +} + +bool GHOST_Window::canAcceptDragOperation() const +{ + return m_canAcceptDragOperation; +} GHOST_TSuccess GHOST_Window::setModifiedState(bool isUnsavedChanges) {