Fix T83575: GPencil: VFX Blur is not disabled when samples are zero
Before the number of samples was not checked, only the pixel size.
This commit is contained in:
parent
37bf71ad04
commit
25e151cc34
Notes:
blender-bot
2023-02-14 04:20:36 +01:00
Referenced by issue #83575, GPencil: VFX Blur is not disabled when samples are zero
|
@ -95,7 +95,7 @@ static DRWShadingGroup *gpencil_vfx_pass_create(const char *name,
|
|||
|
||||
static void gpencil_vfx_blur(BlurShaderFxData *fx, Object *ob, gpIterVfxData *iter)
|
||||
{
|
||||
if (fx->radius[0] == 0.0f && fx->radius[1] == 0.0f) {
|
||||
if ((fx->samples == 0.0f) || (fx->radius[0] == 0.0f && fx->radius[1] == 0.0f)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue