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/render/intern/source/voxeldata.c')
-rw-r--r--source/blender/render/intern/source/voxeldata.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/render/intern/source/voxeldata.c b/source/blender/render/intern/source/voxeldata.c
index bb92a8f7e8a..1022aeeec66 100644
--- a/source/blender/render/intern/source/voxeldata.c
+++ b/source/blender/render/intern/source/voxeldata.c
@@ -371,7 +371,6 @@ static void init_frame_hair(VoxelData *vd, int UNUSED(cfra))
{
Object *ob;
ModifierData *md;
- bool found = false;
vd->dataset = NULL;
if (vd->object == NULL) return;
@@ -381,11 +380,9 @@ static void init_frame_hair(VoxelData *vd, int UNUSED(cfra))
ParticleSystemModifierData *pmd = (ParticleSystemModifierData *)md;
if (pmd->psys && pmd->psys->clmd) {
- found |= BPH_cloth_solver_get_texture_data(ob, pmd->psys->clmd, vd);
+ vd->ok |= BPH_cloth_solver_get_texture_data(ob, pmd->psys->clmd, vd);
}
}
-
- vd->ok = found;
}
void cache_voxeldata(Tex *tex, int scene_frame)
@@ -414,6 +411,9 @@ void cache_voxeldata(Tex *tex, int scene_frame)
BLI_strncpy(path, vd->source_path, sizeof(path));
+ /* each type is responsible for setting to true */
+ vd->ok = false;
+
switch (vd->file_format) {
case TEX_VD_IMAGE_SEQUENCE:
load_frame_image_sequence(vd, tex);
@@ -426,7 +426,6 @@ void cache_voxeldata(Tex *tex, int scene_frame)
return;
case TEX_VD_BLENDERVOXEL:
BLI_path_abs(path, G.main->name);
- if (!BLI_exists(path)) return;
fp = BLI_fopen(path, "rb");
if (!fp) return;
@@ -437,7 +436,6 @@ void cache_voxeldata(Tex *tex, int scene_frame)
return;
case TEX_VD_RAW_8BIT:
BLI_path_abs(path, G.main->name);
- if (!BLI_exists(path)) return;
fp = BLI_fopen(path, "rb");
if (!fp) return;