From aa0bb47576262b909183947815d7f626df82b35d Mon Sep 17 00:00:00 2001 From: Antonioya Date: Wed, 3 Apr 2019 19:58:32 +0200 Subject: Fix T63257: Grease Pencil renders incorrectly when in edit-mode --- source/blender/blenkernel/intern/gpencil_modifier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenkernel') diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c b/source/blender/blenkernel/intern/gpencil_modifier.c index d09a914e23e..30bf30e2842 100644 --- a/source/blender/blenkernel/intern/gpencil_modifier.c +++ b/source/blender/blenkernel/intern/gpencil_modifier.c @@ -419,7 +419,7 @@ void BKE_gpencil_stroke_modifiers(Depsgraph *depsgraph, Object *ob, bGPDlayer *g if (GPENCIL_MODIFIER_ACTIVE(md, is_render)) { const GpencilModifierTypeInfo *mti = BKE_gpencil_modifierType_getInfo(md->type); - if (GPENCIL_MODIFIER_EDIT(md, is_edit)) { + if ((GPENCIL_MODIFIER_EDIT(md, is_edit)) && (!is_render)) { continue; } @@ -457,7 +457,7 @@ void BKE_gpencil_geometry_modifiers(Depsgraph *depsgraph, Object *ob, bGPDlayer if (GPENCIL_MODIFIER_ACTIVE(md, is_render)) { const GpencilModifierTypeInfo *mti = BKE_gpencil_modifierType_getInfo(md->type); - if (GPENCIL_MODIFIER_EDIT(md, is_edit)) { + if ((GPENCIL_MODIFIER_EDIT(md, is_edit)) && (!is_render)) { continue; } @@ -481,7 +481,7 @@ int BKE_gpencil_time_modifier(Depsgraph *depsgraph, Scene *scene, Object *ob, if (GPENCIL_MODIFIER_ACTIVE(md, is_render)) { const GpencilModifierTypeInfo *mti = BKE_gpencil_modifierType_getInfo(md->type); - if (GPENCIL_MODIFIER_EDIT(md, is_edit)) { + if ((GPENCIL_MODIFIER_EDIT(md, is_edit)) && (!is_render)) { continue; } -- cgit v1.2.3