[Bf-blender-cvs] [54cfeacf4b7] blender-v3.2-release: GPencil: Fix crash when using time offset modifier

Falk David noreply at git.blender.org
Wed Jun 22 13:03:00 CEST 2022


Commit: 54cfeacf4b7b422aa15254333d292d755b8ff572
Author: Falk David
Date:   Wed Jun 15 16:15:45 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rB54cfeacf4b7b422aa15254333d292d755b8ff572

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