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-12-06 02:14:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-06 02:14:48 +0300
commit9668c29ba00ed830109665ea132b6292cdfe9e2a (patch)
tree45a9c23c9aaa382b10985b9c640b363f54c3f9c9 /source/blender/render
parentb110c7c8f2c5fafa6412e01d21d751a884bfe8b2 (diff)
bpath iterator updates
- loop over sequencer plugin and texture voxel paths. - fix leak in python bpy.utils.blend_path() and use PyUnicode_DecodeFSDefault() to ensure correct paths with different encodings. - operators to make paths absolute & relative now redraw the view.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/voxeldata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/voxeldata.c b/source/blender/render/intern/source/voxeldata.c
index ac4aba3e4de..859b6246eca 100644
--- a/source/blender/render/intern/source/voxeldata.c
+++ b/source/blender/render/intern/source/voxeldata.c
@@ -268,7 +268,7 @@ static void cache_voxeldata(struct Render *re, Tex *tex)
VoxelData *vd = tex->vd;
FILE *fp;
int curframe;
- char path[FILE_MAX];
+ char path[sizeof(vd->source_path)];
if (!vd) return;
@@ -287,7 +287,7 @@ static void cache_voxeldata(struct Render *re, Tex *tex)
else
curframe = re->r.cfra;
- BLI_strncpy(path, vd->source_path, FILE_MAX);
+ BLI_strncpy(path, vd->source_path, sizeof(path));
switch(vd->file_format) {
case TEX_VD_IMAGE_SEQUENCE: