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-03-21 15:22:27 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-03-21 22:29:17 +0300
commit1e8dfe79c6b2ec293146d93be44c8078762860f2 (patch)
treeb299c3e488a6d3b178f96f3f13b2e5e6ed3afc1c /source/blender/draw/engines/gpencil/gpencil_engine.h
parentc589fdc8dba15b39d2423904388aa73ff57a04ab (diff)
GPencil: Fade to Viewport color
Actually, the fade objects always fade to Black color, but this is not a good solution. This patch fade the object to the viewport color. Differential Revision: https://developer.blender.org/D7206
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_engine.h')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.h b/source/blender/draw/engines/gpencil/gpencil_engine.h
index e7914a1b86c..f765dcf73de 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.h
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.h
@@ -309,6 +309,8 @@ typedef struct GPENCIL_PrivateData {
Object *camera;
/* Copy of draw_ctx->scene for convenience. */
struct Scene *scene;
+ /* Copy of draw_ctx->vie3d for convenience. */
+ struct View3D *v3d;
/* Active object. */
Object *obact;