From c118d644d9623ae66ed271237eeb768d4a4a31ec Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 3 Apr 2011 22:24:05 +0000 Subject: [PATCH] fix [#26760] Crash on voxel data image sequence file datablock unlink --- source/blender/makesrna/intern/rna_texture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }