diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-13 18:57:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-13 18:57:08 +0400 |
commit | 2baa59e36d4994a3dd58c254964a0caf5bc081a3 (patch) | |
tree | 666c2f5ccd12c0cce1375098e1d64205c48f3198 /source/blender/blenloader | |
parent | 53bb59f209bae874d7d73c5fb882452c1fee9cd8 (diff) |
code cleanup: remove unused string formatting in bli_adddirstrings(), also remove unused initializations and comment unused vars.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 98c37e85e53..2c821229fb4 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -7365,7 +7365,6 @@ static void do_versions_nodetree_multi_file_output_format_2_62_1(Scene *sce, bNo bNodeSocket *old_image = BLI_findlink(&node->inputs, 0); bNodeSocket *old_z = BLI_findlink(&node->inputs, 1); bNodeSocket *sock; - char basepath[FILE_MAXDIR]; char filename[FILE_MAXFILE]; /* ugly, need to remove the old inputs list to avoid bad pointer checks when adding new sockets. @@ -7377,6 +7376,8 @@ static void do_versions_nodetree_multi_file_output_format_2_62_1(Scene *sce, bNo /* looks like storage data can be messed up somehow, stupid check here */ if (old_data) { + char basepath[FILE_MAXDIR]; + /* split off filename from the old path, to be used as socket sub-path */ BLI_split_dirfile(old_data->name, basepath, filename, sizeof(basepath), sizeof(filename)); @@ -7384,7 +7385,6 @@ static void do_versions_nodetree_multi_file_output_format_2_62_1(Scene *sce, bNo nimf->format = old_data->im_format; } else { - basepath[0] = '\0'; BLI_strncpy(filename, old_image->name, sizeof(filename)); } |