diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-04 02:24:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-04 02:24:05 +0400 |
commit | c118d644d9623ae66ed271237eeb768d4a4a31ec (patch) | |
tree | 6eb34bb7611372b950c70fb9f87e9faabf739ff9 /source/blender/makesrna/intern/rna_texture.c | |
parent | a30ebdeb68f0efc5726133c521939889049b566a (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.c | 4 |
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); } |