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:
authorAntonio Vazquez <blendergit@gmail.com>2021-09-17 12:01:01 +0300
committerJeroen Bakker <jeroen@blender.org>2021-09-22 09:31:12 +0300
commit8235d4dea677b86804bd81bfc44a69b08ab4013c (patch)
tree4ce34bc8abaefbab587f3df87b30d0fac0497bb7
parentcbf18b65868661407e97e9451d0838b2e9e4ac70 (diff)
Fix T91448: GPencil Fill simplify not working in render
The simplify was hardcode to be disabled in render.
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 32884eb9e3f..ebaf97b42bf 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -240,8 +240,9 @@ void GPENCIL_cache_init(void *ved)
}
else {
pd->do_onion = true;
- pd->simplify_fill = false;
- pd->simplify_fx = false;
+ Scene *scene = draw_ctx->scene;
+ pd->simplify_fill = GPENCIL_SIMPLIFY_FILL(scene, false);
+ pd->simplify_fx = GPENCIL_SIMPLIFY_FX(scene, false);
pd->fade_layer_opacity = -1.0f;
pd->playing = false;
}