[Bf-blender-cvs] [52e977d5189] blender-v2.93-release: GPencil: Fix unreported problem when save file in Curve Edit mode
Antonio Vazquez
noreply at git.blender.org
Sun May 2 15:56:24 CEST 2021
Commit: 52e977d51895d25c24d0a70208b37f5c04762cec
Author: Antonio Vazquez
Date: Sun May 2 15:51:46 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rB52e977d51895d25c24d0a70208b37f5c04762cec
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