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
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-07-05 04:00:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-05 04:00:40 +0400
commit9c4e3a7b6b3c90efd1f849dedd64ccfda98b97c2 (patch)
treea673ae2b69d3ded8565b550e816b4e5e4bb3d51f /intern
parenta824220d3e71afda0460c769324c9029243d0560 (diff)
bugfix [#22724] "Scene" switch on the console doesn't work
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_Path-api.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_Path-api.cpp b/intern/ghost/intern/GHOST_Path-api.cpp
index 59e1801ae5a..b2b7c68e998 100644
--- a/intern/ghost/intern/GHOST_Path-api.cpp
+++ b/intern/ghost/intern/GHOST_Path-api.cpp
@@ -34,17 +34,17 @@
const GHOST_TUns8* GHOST_getSystemDir()
{
GHOST_ISystem* system = GHOST_ISystem::getSystem();
- return system->getSystemDir();
+ return system ? system->getSystemDir() : NULL;
}
const GHOST_TUns8* GHOST_getUserDir()
{
GHOST_ISystem* system = GHOST_ISystem::getSystem();
- return system->getUserDir();
+ return system ? system->getUserDir() : NULL; /* will be NULL in background mode */
}
const GHOST_TUns8* GHOST_getBinaryDir()
{
GHOST_ISystem* system = GHOST_ISystem::getSystem();
- return system->getBinaryDir();
+ return system ? system->getBinaryDir() : NULL; /* will be NULL in background mode */
}