diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-05 04:00:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-05 04:00:40 +0400 |
commit | 9c4e3a7b6b3c90efd1f849dedd64ccfda98b97c2 (patch) | |
tree | a673ae2b69d3ded8565b550e816b4e5e4bb3d51f /intern | |
parent | a824220d3e71afda0460c769324c9029243d0560 (diff) |
bugfix [#22724] "Scene" switch on the console doesn't work
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_Path-api.cpp | 6 |
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 */ } |