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:
authormano-wii <germano.costa@ig.com.br>2017-10-30 09:21:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-30 09:50:47 +0300
commit8277bee748188dbcab431e15bedd5c1b5559508a (patch)
treed886b3f123acfd1531ac18618c993ddb4733ab43 /source/blender/draw/intern
parent689ad9ade42fbb03084aaca7e478efddbe891e7f (diff)
Draw Manager: re-enable edit-mesh text overlay
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r--source/blender/draw/intern/draw_manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 63910321f39..36008099b70 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -2573,6 +2573,10 @@ static void DRW_viewport_var_init(void)
DST.backface = GL_CW;
glFrontFace(DST.frontface);
+ if (DST.draw_ctx.scene->obedit) {
+ ED_view3d_init_mats_rv3d(DST.draw_ctx.scene->obedit, rv3d);
+ }
+
/* Alloc array of texture reference. */
if (RST.bound_texs == NULL) {
RST.bound_texs = MEM_callocN(sizeof(GPUTexture *) * GPU_max_textures(), "Bound GPUTexture refs");