fix [#26760] Crash on voxel data image sequence file datablock unlink

This commit is contained in:
Campbell Barton 2011-04-03 22:24:05 +00:00
parent a30ebdeb68
commit c118d644d9

@ -149,7 +149,9 @@ static void rna_Texture_voxeldata_image_update(Main *bmain, Scene *scene, Pointe
{ {
Tex *tex= ptr->id.data; 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); rna_Texture_voxeldata_update(bmain, scene, ptr);
} }