diff options
author | Juho Vepsalainen <bebraw@gmail.com> | 2007-11-08 16:49:11 +0300 |
---|---|---|
committer | Juho Vepsalainen <bebraw@gmail.com> | 2007-11-08 16:49:11 +0300 |
commit | b2a972b4cd1e4ee6ebb979c4b96aecc8bfdd9719 (patch) | |
tree | f88957e284b718b89457bec8a9336397c6918ec3 /source/blender/src/filesel.c | |
parent | 40f871c07f7d6f2bd5696ea0585380a30beb8161 (diff) |
Fix for bug #7697 Appending screen crashes when appended screen is accessed:
This commit fixes the issue by disabling access to screens via the path input field.
Note that appending screens might actually be a useful feature to implement at some point.
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r-- | source/blender/src/filesel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c index d304125ca9a..ba5a04ddbce 100644 --- a/source/blender/src/filesel.c +++ b/source/blender/src/filesel.c @@ -2188,7 +2188,8 @@ static int is_a_library(SpaceFile *sfile, char *dir, char *group) /* now we know that we are in a blend file and it is safe to assume that gp actually points to a group */ - BLI_strncpy(group, gp, GROUP_MAX); + if (BLI_streq("Screen", gp)==0) + BLI_strncpy(group, gp, GROUP_MAX); } return 1; } |