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 <antoniov>2019-10-02 16:29:09 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-10-02 16:33:20 +0300
commitddd40985e7dfe026323dede900fa2417fde225c0 (patch)
tree7238346df2ecb91b54f6554229b24e5f8cd9a3d0 /source/blender/draw/engines/gpencil/gpencil_engine.h
parent31473070b3cfd28db1eccf39630edd87a69687f3 (diff)
Fix T70399: Grease Pencil Canvas Grid Overlay Broken after DRW refactor
Now the grid matrix is calculated when the shading group is created. Also, the grid pass is only created when needed and reduce memory usage when the scene is not using grease pencil objects. Reviewed By: fclem Differential Revision: https://developer.blender.org/D5966
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_engine.h')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.h b/source/blender/draw/engines/gpencil/gpencil_engine.h
index b014717e6f5..10cab248317 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.h
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.h
@@ -153,6 +153,7 @@ typedef struct GPENCIL_Storage {
int do_select_outline;
float select_color[4];
short multisamples;
+ float grid_matrix[4][4];
short framebuffer_flag; /* flag what framebuffer need to create */