[Bf-blender-cvs] [cf1287308fd] custom-manipulators: Disable depth test for scale widget

Campbell Barton noreply at git.blender.org
Thu Apr 6 03:20:14 CEST 2017


Commit: cf1287308fd2b5cc5877ad0f3a58577fa16e8517
Author: Campbell Barton
Date:   Thu Apr 6 00:44:39 2017 +1000
Branches: custom-manipulators
https://developer.blender.org/rBcf1287308fd2b5cc5877ad0f3a58577fa16e8517

Disable depth test for scale widget

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

M	source/blender/windowmanager/manipulators/intern/wm_manipulator.c

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

diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator.c b/source/blender/windowmanager/manipulators/intern/wm_manipulator.c
index 2111b8c5d37..ef99e98cb96 100644
--- a/source/blender/windowmanager/manipulators/intern/wm_manipulator.c
+++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator.c
@@ -84,12 +84,12 @@ void wm_manipulator_geometryinfo_draw(ManipulatorGeometryInfo *info, const bool
 	glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(unsigned short) * (3 * info->ntris), info->indices, GL_STATIC_DRAW);
 
 	glEnable(GL_CULL_FACE);
-	glEnable(GL_DEPTH_TEST);
+	// glEnable(GL_DEPTH_TEST);
 
 	glDrawElements(GL_TRIANGLES, info->ntris * 3, GL_UNSIGNED_SHORT, NULL);
 
 	glDisable(GL_DEPTH_TEST);
-	glDisable(GL_CULL_FACE);
+	// glDisable(GL_CULL_FACE);
 
 	glBindBuffer(GL_ARRAY_BUFFER, 0);
 	glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);




More information about the Bf-blender-cvs mailing list