[Bf-blender-cvs] [886d213a14f] greasepencil-object: Draw buffer if stroke shaders are not loaded yet
Antonio Vazquez
noreply at git.blender.org
Sat Apr 22 19:04:34 CEST 2017
Commit: 886d213a14f133998588ca8918dbbeb11bf12b38
Author: Antonio Vazquez
Date: Sat Apr 22 18:18:19 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB886d213a14f133998588ca8918dbbeb11bf12b38
Draw buffer if stroke shaders are not loaded yet
This fix the problem for the first stroke in the frame
===================================================================
M source/blender/draw/engines/gpencil/gpencil_mode.c
===================================================================
diff --git a/source/blender/draw/engines/gpencil/gpencil_mode.c b/source/blender/draw/engines/gpencil/gpencil_mode.c
index 2c03df791f1..d7655bdd111 100644
--- a/source/blender/draw/engines/gpencil/gpencil_mode.c
+++ b/source/blender/draw/engines/gpencil/gpencil_mode.c
@@ -557,8 +557,9 @@ static void GPENCIL_draw_scene(void *vedata)
DRW_draw_pass(psl->fill_pass);
DRW_draw_pass(psl->stroke_pass);
DRW_draw_pass(psl->edit_pass);
- DRW_draw_pass(psl->drawing_pass);
}
+ /* current buffer */
+ DRW_draw_pass(psl->drawing_pass);
}
static const DrawEngineDataSize GPENCIL_data_size = DRW_VIEWPORT_DATA_SIZE(GPENCIL_Data);
More information about the Bf-blender-cvs
mailing list