Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-06-28 20:37:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-28 20:37:39 +0400
commit5d413b523a92ee70245a43568cc350dd56fa42e4 (patch)
tree14163eb594e039d1e8c351b25ea91381d7682459 /source/blender/windowmanager/intern/wm_cursors.c
parent86515e5086c833125409756cba51d7d0ec4de007 (diff)
fix for crash when setting the cursor in background mode.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_cursors.c')
-rw-r--r--source/blender/windowmanager/intern/wm_cursors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c
index fa7e4afc68c..515f80b0ade 100644
--- a/source/blender/windowmanager/intern/wm_cursors.c
+++ b/source/blender/windowmanager/intern/wm_cursors.c
@@ -107,7 +107,9 @@ static BCursor *BlenderCursor[BC_NUMCURSORS]; /*Points to static BCursor Structs
void WM_cursor_set(wmWindow *win, int curs)
{
- if (win == NULL) return; /* Can't set custom cursor before Window init */
+ if (win == NULL || G.background) {
+ return; /* Can't set custom cursor before Window init */
+ }
if (curs == CURSOR_NONE) {
GHOST_SetCursorVisibility(win->ghostwin, 0);