[Bf-blender-cvs] [4eedec8] master: UI: Correct code cleanup

Campbell Barton noreply at git.blender.org
Thu Jul 24 07:11:32 CEST 2014


Commit: 4eedec86819ff91f1c96405603650e2833c77b9a
Author: Campbell Barton
Date:   Thu Jul 24 15:08:52 2014 +1000
Branches: master
https://developer.blender.org/rB4eedec86819ff91f1c96405603650e2833c77b9a

UI: Correct code cleanup

Old code commented to reverse list in fact did nothing, replacing with call to reverse broke menu arrowkeys direction.

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

M	source/blender/editors/interface/interface.c

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

diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index ce75b44..0a45ffc 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -3811,9 +3811,6 @@ void uiBlockFlipOrder(uiBlock *block)
 		but->rect.ymax = centy - (but->rect.ymax - centy);
 		SWAP(float, but->rect.ymin, but->rect.ymax);
 	}
-	
-	/* also flip order in block itself, for example for arrowkey */
-	BLI_listbase_reverse(&block->buttons);
 }




More information about the Bf-blender-cvs mailing list