Commit: aea5b4fbfaa9465d7d20c50fa54f871dd07b11a9
Author: Nicholas Rishel
Date: Mon Jul 19 11:30:34 2021 -0700
Branches: grab_walk_fix
https://developer.blender.org/rBaea5b4fbfaa9465d7d20c50fa54f871dd07b11a9
Cleanup: remove unmodified return variable.
===================================================================
M intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm
b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 0c3b3062126..8ab18d27e60 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -1072,8 +1072,6 @@ GHOST_TSuccess
GHOST_WindowCocoa::setWindowCursorVisibility(bool visible)
GHOST_TSuccess GHOST_WindowCocoa::setWindowCursorGrab(GHOST_TGrabCursorMode
mode)
{
- GHOST_TSuccess err = GHOST_kSuccess;
-
if (mode != GHOST_kGrabDisable) {
// No need to perform grab without warp as it is always on in OS X
if (mode != GHOST_kGrabNormal) {
@@ -1103,7 +1101,8 @@ GHOST_TSuccess
GHOST_WindowCocoa::setWindowCursorGrab(GHOST_TGrabCursorMode mode
setCursorGrabAccum(0, 0);
m_cursorGrabBounds.m_l = m_cursorGrabBounds.m_r = -1; /* disable */
}
- return err;
+
+ return GHOST_kSuccess;
}
GHOST_TSuccess GHOST_WindowCocoa::setWindowCursorShape(GHOST_TStandardCursor
shape)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs