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
committerAntonio Vazquez <blendergit@gmail.com>2021-09-17 12:01:01 +0300
commit1cd20b0026838c3fb69c0b273db8513f89f31f22 (patch)
treeafcd52b50fdc56ea2439ffa25d4fc7886e40617c
parent9dee0a10c81d9f4ce8d4fc85ed8722d899f34dde (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 d3a0c40fae5..1078cebdbff 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;
}