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>2011-04-04 02:24:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-04 02:24:05 +0400
commitc118d644d9623ae66ed271237eeb768d4a4a31ec (patch)
tree6eb34bb7611372b950c70fb9f87e9faabf739ff9 /source/blender/makesrna/intern/rna_texture.c
parenta30ebdeb68f0efc5726133c521939889049b566a (diff)
fix [#26760] Crash on voxel data image sequence file datablock unlink
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture.c')
-rw-r--r--source/blender/makesrna/intern/rna_texture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c
index d020fa1c194..3ff5150b442 100644
--- a/source/blender/makesrna/intern/rna_texture.c
+++ b/source/blender/makesrna/intern/rna_texture.c
@@ -149,7 +149,9 @@ static void rna_Texture_voxeldata_image_update(Main *bmain, Scene *scene, Pointe
{
Tex *tex= ptr->id.data;
- tex->ima->source = IMA_SRC_SEQUENCE;
+ if(tex->ima) { /* may be getting cleared too */
+ tex->ima->source = IMA_SRC_SEQUENCE;
+ }
rna_Texture_voxeldata_update(bmain, scene, ptr);
}