[Bf-blender-cvs] [1cd20b00268] master: Fix T91448: GPencil Fill simplify not working in render
Antonio Vazquez
noreply at git.blender.org
Fri Sep 17 11:01:16 CEST 2021
Commit: 1cd20b0026838c3fb69c0b273db8513f89f31f22
Author: Antonio Vazquez
Date: Fri Sep 17 11:01:01 2021 +0200
Branches: master
https://developer.blender.org/rB1cd20b0026838c3fb69c0b273db8513f89f31f22
Fix T91448: GPencil Fill simplify not working in render
The simplify was hardcode to be disabled in render.
===================================================================
M source/blender/draw/engines/gpencil/gpencil_engine.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list