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:
authorAntonioya <blendergit@gmail.com>2018-12-07 22:01:01 +0300
committerAntonioya <blendergit@gmail.com>2018-12-07 22:01:01 +0300
commita8e459e452f7b7c42de8c4719125b69bfd1c7f32 (patch)
treee0af17c22ac9afd69b66c2491f7338e80700b0a9 /source/blender/draw/engines/gpencil/gpencil_shader_fx.c
parent6a5e8096973f701363a36eb07a096ff8ca784342 (diff)
Fix T58360 "Use object as pivot" in GP "Shadow effect" crashes Blender
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_shader_fx.c')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_shader_fx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_shader_fx.c b/source/blender/draw/engines/gpencil/gpencil_shader_fx.c
index fcadf296253..673b47ff052 100644
--- a/source/blender/draw/engines/gpencil/gpencil_shader_fx.c
+++ b/source/blender/draw/engines/gpencil/gpencil_shader_fx.c
@@ -443,6 +443,9 @@ static void DRW_gpencil_fx_shadow(
}
ShadowShaderFxData *fxd = (ShadowShaderFxData *)fx;
if ((!fxd->object) && (fxd->flag & FX_SHADOW_USE_OBJECT)) {
+ fxd->runtime.fx_sh = NULL;
+ fxd->runtime.fx_sh_b = NULL;
+ fxd->runtime.fx_sh_c = NULL;
return;
}