[Bf-blender-cvs] [762319e911] master: fix redundant assignment

Mike Erwin noreply at git.blender.org
Wed Mar 22 21:27:47 CET 2017


Commit: 762319e911843e0014d8395b558203a8638d656a
Author: Mike Erwin
Date:   Wed Mar 22 16:26:53 2017 -0400
Branches: master
https://developer.blender.org/rB762319e911843e0014d8395b558203a8638d656a

fix redundant assignment

Thanks clang for the warning.

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

M	source/blender/editors/space_outliner/outliner_draw.c

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

diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 42d9e4356e..121fe81201 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -1052,8 +1052,8 @@ static void tselem_draw_icon(uiBlock *block, int xmax, float x, float y, TreeSto
 	aspect = (0.8f * UI_UNIT_Y) / ICON_DEFAULT_HEIGHT;
 	x += 2.0f * aspect;
 	y += 2.0f * aspect;
-	arg.x = x = x;
-	arg.y = y = y;
+	arg.x = x;
+	arg.y = y;
 
 	if (tselem->type) {
 		switch (tselem->type) {




More information about the Bf-blender-cvs mailing list