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:
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r--source/blender/src/filesel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c
index 2b04f303f2f..5c9fd847f53 100644
--- a/source/blender/src/filesel.c
+++ b/source/blender/src/filesel.c
@@ -1358,7 +1358,7 @@ static void activate_fileselect_(int type, char *title, char *file, short *menup
/* sfile->act is used for databrowse: double names of library objects */
sfile->act= -1;
- if(!strstr(G.main->name, ".B.blend") && BLI_convertstringcode(name, G.sce, G.scene->r.cfra))
+ if(G.relbase_valid && BLI_convertstringcode(name, G.sce, G.scene->r.cfra))
sfile->flag |= FILE_STRINGCODE;
else
sfile->flag &= ~FILE_STRINGCODE;
@@ -1443,8 +1443,7 @@ void activate_imageselect(int type, char *title, char *file, void (*func)(char *
simasel= curarea->spacedata.first;
simasel->returnfunc= func;
-
- if(!strstr(G.main->name, ".B.blend") && BLI_convertstringcode(name, G.sce, G.scene->r.cfra))
+ if(G.relbase_valid && BLI_convertstringcode(name, G.sce, G.scene->r.cfra))
simasel->mode |= IMS_STRINGCODE;
else
simasel->mode &= ~IMS_STRINGCODE;