Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-06-06 11:04:56 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-06-06 11:04:56 +0300
commitf5781384aecfcb042fcaf91eb8edf9dcf5e261d9 (patch)
tree25e4e929329d41838629134dfe4e20bdf8e347fd /source/blender/editors/gpencil
parenta39cc5ae4da2cd036a61d69b871a89659fd07547 (diff)
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.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c4
1 files changed, 3 insertions, 1 deletions
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;