[Bf-blender-cvs] [bd9fde8] wiggly-widgets: Only draw leftovers of old manipulator widget if debug_value != 0

Julian Eisel noreply at git.blender.org
Fri Jul 24 15:33:16 CEST 2015


Commit: bd9fde84866c15297a20ee128eda2be3b611910c
Author: Julian Eisel
Date:   Fri Jul 24 15:25:47 2015 +0200
Branches: wiggly-widgets
https://developer.blender.org/rBbd9fde84866c15297a20ee128eda2be3b611910c

Only draw leftovers of old manipulator widget if debug_value != 0

Good to keep this as reference.

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

M	source/blender/editors/transform/manipulator_widget.c

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

diff --git a/source/blender/editors/transform/manipulator_widget.c b/source/blender/editors/transform/manipulator_widget.c
index 8f5dd54..1a901da 100644
--- a/source/blender/editors/transform/manipulator_widget.c
+++ b/source/blender/editors/transform/manipulator_widget.c
@@ -1721,8 +1721,10 @@ static void WIDGET_manipulator_draw(const bContext *C, wmWidget *UNUSED(widget))
 	View3D *v3d = sa->spacedata.first;
 	RegionView3D *rv3d = ar->regiondata;
 
-	if (v3d->twflag & V3D_DRAW_MANIPULATOR) {
+	if (G.debug_value == 0)
+		return;
 
+	if (v3d->twflag & V3D_DRAW_MANIPULATOR) {
 		glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 		glEnable(GL_BLEND);
 		if (v3d->twtype & V3D_MANIP_ROTATE) {




More information about the Bf-blender-cvs mailing list