Commit: f5781384aecfcb042fcaf91eb8edf9dcf5e261d9
Author: Antonio Vazquez
Date:   Sat Jun 6 10:04:56 2020 +0200
Branches: master
https://developer.blender.org/rBf5781384aecfcb042fcaf91eb8edf9dcf5e261d9

GPencil: Fix unreported fill helper lines not displayed

When use the helper lines (red lines) with fill tool, the lines were not 
displayed in some situations.

===================================================================

M       source/blender/editors/gpencil/gpencil_fill.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_fill.c 
b/source/blender/editors/gpencil/gpencil_fill.c
index d23a914fc49..502097a0678 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -1274,11 +1274,12 @@ static tGPDfill *gp_session_init_fill(bContext *C, 
wmOperator *UNUSED(op))
   ToolSettings *ts = CTX_data_tool_settings(C);
   bGPdata *gpd = CTX_data_gpencil_data(C);
   Main *bmain = CTX_data_main(C);
+  Scene *scene = CTX_data_scene(C);
 
   /* set current scene and window info */
   tgpf->C = C;
   tgpf->bmain = CTX_data_main(C);
-  tgpf->scene = CTX_data_scene(C);
+  tgpf->scene = scene;
   tgpf->ob = CTX_data_active_object(C);
   tgpf->area = CTX_wm_area(C);
   tgpf->region = CTX_wm_region(C);
@@ -1286,6 +1287,7 @@ static tGPDfill *gp_session_init_fill(bContext *C, 
wmOperator *UNUSED(op))
   tgpf->v3d = tgpf->area->spacedata.first;
   tgpf->depsgraph = CTX_data_ensure_evaluated_depsgraph(C);
   tgpf->win = CTX_wm_window(C);
+  tgpf->active_cfra = CFRA;
 
   /* set GP datablock */
   tgpf->gpd = gpd;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to