[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40778] trunk/blender/source/blender/ editors/interface/interface_regions.c: revert r40738, flipepd enums give quick access to first items, even if it does seem odd to have them flipped.

Campbell Barton ideasman42 at gmail.com
Mon Oct 3 19:59:33 CEST 2011


Revision: 40778
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40778
Author:   campbellbarton
Date:     2011-10-03 17:59:33 +0000 (Mon, 03 Oct 2011)
Log Message:
-----------
revert r40738, flipepd enums give quick access to first items, even if it does seem odd to have them flipped.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40738

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface_regions.c

Modified: trunk/blender/source/blender/editors/interface/interface_regions.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_regions.c	2011-10-03 17:42:24 UTC (rev 40777)
+++ trunk/blender/source/blender/editors/interface/interface_regions.c	2011-10-03 17:59:33 UTC (rev 40778)
@@ -2322,6 +2322,10 @@
 		pup->popup= 1;
 		pup->block->flag |= UI_BLOCK_NO_FLIP;
 	}
+	/* some enums reversing is strange, currently we have no good way to
+	 * reverse some enum's but not others, so reverse all so the first menu
+	 * items are always close to the mouse cursor */
+#if 0
 	else {
 		/* if this is an rna button then we can assume its an enum
 		 * flipping enums is generally not good since the order can be
@@ -2330,6 +2334,7 @@
 			pup->block->flag |= UI_BLOCK_NO_FLIP;
 		}
 	}
+#endif
 
 	if(str) {
 		/* menu is created from a string */




More information about the Bf-blender-cvs mailing list