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:
Antonio Vazquez 2020-12-09 15:41:07 +01:00
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
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}