[Bf-blender-cvs] [8d1c3ceb543] cycles_texture_cache: GPencil: Fix unreported problem when save file in Curve Edit mode
Antonio Vazquez
noreply at git.blender.org
Thu May 6 11:25:35 CEST 2021
Commit: 8d1c3ceb5433ccb284118926d05e90bcaadc15e2
Author: Antonio Vazquez
Date: Sun May 2 15:51:46 2021 +0200
Branches: cycles_texture_cache
https://developer.blender.org/rB8d1c3ceb5433ccb284118926d05e90bcaadc15e2
GPencil: Fix unreported problem when save file in Curve Edit mode
This is related to T87905
===================================================================
M source/blender/blenkernel/intern/gpencil_modifier.c
===================================================================
diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c b/source/blender/blenkernel/intern/gpencil_modifier.c
index d6c252b39ed..16386cac029 100644
--- a/source/blender/blenkernel/intern/gpencil_modifier.c
+++ b/source/blender/blenkernel/intern/gpencil_modifier.c
@@ -757,8 +757,8 @@ void BKE_gpencil_modifiers_calc(Depsgraph *depsgraph, Scene *scene, Object *ob)
{
bGPdata *gpd = (bGPdata *)ob->data;
const bool is_edit = GPENCIL_ANY_EDIT_MODE(gpd);
- const bool is_curve_edit = (bool)GPENCIL_CURVE_EDIT_SESSIONS_ON(gpd);
const bool is_render = (bool)(DEG_get_mode(depsgraph) == DAG_EVAL_RENDER);
+ const bool is_curve_edit = (bool)(GPENCIL_CURVE_EDIT_SESSIONS_ON(gpd) && !is_render);
const bool is_multiedit = (bool)(GPENCIL_MULTIEDIT_SESSIONS_ON(gpd) && !is_render);
const bool do_modifiers = (bool)((!is_multiedit) && (!is_curve_edit) &&
(ob->greasepencil_modifiers.first != NULL) &&
More information about the Bf-blender-cvs
mailing list