[Bf-blender-cvs] [071a69f] master: Fix T47003: OpenGL draw missing selection highlight when using hidden wire.

Brecht Van Lommel noreply at git.blender.org
Tue Dec 22 20:56:49 CET 2015


Commit: 071a69fc95791ffea52f394f5de25518b5b8302f
Author: Brecht Van Lommel
Date:   Tue Dec 22 20:55:18 2015 +0100
Branches: master
https://developer.blender.org/rB071a69fc95791ffea52f394f5de25518b5b8302f

Fix T47003: OpenGL draw missing selection highlight when using hidden wire.

===================================================================

M	source/blender/editors/space_view3d/drawobject.c

===================================================================

diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 681e64f..b59a6d8 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -3752,6 +3752,7 @@ static void draw_em_fancy(Scene *scene, ARegion *ar, View3D *v3d,
 			glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
 			cageDM->drawMappedFaces(cageDM, draw_em_fancy__setFaceOpts,
 			                        GPU_object_material_bind, NULL, me->edit_btmesh, DM_DRAW_SKIP_HIDDEN | DM_DRAW_NEED_NORMALS);
+			GPU_object_material_unbind();
 			glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
 		}
 		else if (check_object_draw_texture(scene, v3d, dt)) {




More information about the Bf-blender-cvs mailing list