[Bf-blender-cvs] [f0fa90e1562] master: GPencil: Fix crash when using time offset modifier
Falk David
noreply at git.blender.org
Wed Jun 15 16:17:27 CEST 2022
Commit: f0fa90e15623e2e65fd64fc939c07facc1fd8494
Author: Falk David
Date: Wed Jun 15 16:15:45 2022 +0200
Branches: master
https://developer.blender.org/rBf0fa90e15623e2e65fd64fc939c07facc1fd8494
GPencil: Fix crash when using time offset modifier
This fixes a mistake in 60bf561d379a, which did not account for offset
frames by the time offset modifier.
===================================================================
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 5e6c00688b3..5ef4d231807 100644
--- a/source/blender/blenkernel/intern/gpencil_modifier.c
+++ b/source/blender/blenkernel/intern/gpencil_modifier.c
@@ -689,7 +689,7 @@ static void gpencil_copy_visible_frames_to_eval(Depsgraph *depsgraph, Scene *sce
/* Always copy active frame to eval, because the modifiers always evaluate the active frame,
* even if it's not visible (e.g. the layer is hidden).*/
if (gpl_eval->actframe != NULL) {
- copy_frame_to_eval_ex(gpf_eval->runtime.gpf_orig, gpl_eval->actframe);
+ copy_frame_to_eval_ex(gpl_eval->actframe->runtime.gpf_orig, gpl_eval->actframe);
}
}
More information about the Bf-blender-cvs
mailing list