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:
-rw-r--r--source/blender/render/intern/source/pixelshading.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/pixelshading.c b/source/blender/render/intern/source/pixelshading.c
index 6128a4823a4..fc5ac68e8c9 100644
--- a/source/blender/render/intern/source/pixelshading.c
+++ b/source/blender/render/intern/source/pixelshading.c
@@ -296,7 +296,7 @@ int shadeHaloFloat(HaloRen *har, float *col, int zz,
return 0;
/* soften the halo if it intersects geometry */
- if(har->mat->mode & MA_HALO_SOFT) {
+ if(har->mat && har->mat->mode & MA_HALO_SOFT) {
float segment_length, halo_depth, distance_from_z, visible_depth, soften;
/* calculate halo depth */