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:
authorCampbell Barton <ideasman42@gmail.com>2010-10-12 02:05:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-12 02:05:45 +0400
commit6ebe7b8c5d7060e9ee33b0f30e84f6f62c8e8fef (patch)
tree055e6aaa3b9523b9963baf6b272eca97e2e25a19 /source/blender/makesrna/intern
parent544b3178f92618f0b5f450cd18ef9195556acd9f (diff)
[#24226] small inconsistency in user preferences
also made setting the temp dir more consistent, slash is always added on the end and if the user-pref dir is invalid its not used.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 18620617c87..4196b3585b3 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -221,8 +221,7 @@ static void rna_userdef_addon_remove(bAddon *bext)
static void rna_userdef_temp_update(Main *bmain, Scene *scene, PointerRNA *ptr)
{
extern char btempdir[];
- UserDef *userdef = (UserDef*)ptr->data;
- strncpy(btempdir, userdef->tempdir, FILE_MAXDIR+FILE_MAXFILE);
+ BLI_where_is_temp(btempdir, 1);
}
#else