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:
authorTon Roosendaal <ton@blender.org>2005-12-14 16:21:32 +0300
committerTon Roosendaal <ton@blender.org>2005-12-14 16:21:32 +0300
commitf88a0a6efdd1b32b67fe7f1f7fe533426e62e08c (patch)
tree752a95449c943e7de03147a2cf8af4b6614b4e59 /source/blender/src/editimasel.c
parentcb57d03e9791527abbf7ce3c522899ea0e95e7e2 (diff)
Orange: more relative path code cleanup. Introduced a new call in the
blenlib to correctly convert a relative path to a clean new path: BLI_cleanup_dir(const char *relabase, char *name); Only works for directories now.
Diffstat (limited to 'source/blender/src/editimasel.c')
-rw-r--r--source/blender/src/editimasel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/editimasel.c b/source/blender/src/editimasel.c
index 6fb5d411b98..3d2b3c8b715 100644
--- a/source/blender/src/editimasel.c
+++ b/source/blender/src/editimasel.c
@@ -179,7 +179,7 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
queredraw = 1;
case 1: /* dir entry */
- checkdir(simasel->dir);
+ BLI_cleanup_dir(G.sce, simasel->dir);
clear_ima_dir(simasel);
queredraw = 1;
break;
@@ -188,7 +188,7 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
selname= fsmenu_get_entry(simasel->fileselmenuitem-1);
if (selname) {
strcpy(simasel->dir, selname);
- checkdir(simasel->dir);
+ BLI_cleanup_dir(G.sce, simasel->dir);
clear_ima_dir(simasel);
queredraw = 1;
}
@@ -349,7 +349,7 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
}
if (G.qual == 0){
imadir_parent(simasel);
- checkdir(simasel->dir);
+ BLI_cleanup_dir(G.sce, simasel->dir);
clear_ima_dir(simasel);
queredraw = 1;
}