forked from bartvdbraak/blender
Separate "content reordering" from "plain menus".
This commit is contained in:
parent
172a3e9d0e
commit
573f2f34fa
@ -2850,8 +2850,8 @@ void uiBlockFlipOrder(uiBlock *block)
|
|||||||
uiBut *but, *next;
|
uiBut *but, *next;
|
||||||
float centy, miny=10000, maxy= -10000;
|
float centy, miny=10000, maxy= -10000;
|
||||||
|
|
||||||
/*if(U.uiflag & USER_PLAINMENUS)
|
if(!(U.uiflag & USER_DIRECTIONALORDER))
|
||||||
return;*/
|
return;
|
||||||
|
|
||||||
for(but= block->buttons.first; but; but= but->next) {
|
for(but= block->buttons.first; but; but= but->next) {
|
||||||
if(but->flag & UI_BUT_ALIGN) return;
|
if(but->flag & UI_BUT_ALIGN) return;
|
||||||
|
@ -378,6 +378,7 @@ extern UserDef U; /* from blenkernel blender.c */
|
|||||||
#define USER_ZOOM_TO_MOUSEPOS (1 << 20)
|
#define USER_ZOOM_TO_MOUSEPOS (1 << 20)
|
||||||
#define USER_SHOW_FPS (1 << 21)
|
#define USER_SHOW_FPS (1 << 21)
|
||||||
#define USER_MMB_PASTE (1 << 22)
|
#define USER_MMB_PASTE (1 << 22)
|
||||||
|
#define USER_DIRECTIONALORDER (1 << 23)
|
||||||
|
|
||||||
/* Auto-Keying mode */
|
/* Auto-Keying mode */
|
||||||
/* AUTOKEY_ON is a bitflag */
|
/* AUTOKEY_ON is a bitflag */
|
||||||
|
@ -1476,7 +1476,11 @@ static void rna_def_userdef_view(BlenderRNA *brna)
|
|||||||
|
|
||||||
prop= RNA_def_property(srna, "use_column_layout", PROP_BOOLEAN, PROP_NONE);
|
prop= RNA_def_property(srna, "use_column_layout", PROP_BOOLEAN, PROP_NONE);
|
||||||
RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_PLAINMENUS);
|
RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_PLAINMENUS);
|
||||||
RNA_def_property_ui_text(prop, "Toolbox Column Layout", "Use a column layout for toolbox and do not flip the contents of any menu.");
|
RNA_def_property_ui_text(prop, "Toolbox Column Layout", "Use a column layout for toolbox.");
|
||||||
|
|
||||||
|
prop= RNA_def_property(srna, "directional_menus", PROP_BOOLEAN, PROP_NONE);
|
||||||
|
RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_DIRECTIONALORDER);
|
||||||
|
RNA_def_property_ui_text(prop, "Contents Follow Opening Direction", "Otherwise menus, etc will always be top to bottom, left to right, no matter opening direction.");
|
||||||
|
|
||||||
/* snap to grid */
|
/* snap to grid */
|
||||||
prop= RNA_def_property(srna, "snap_translate", PROP_BOOLEAN, PROP_NONE);
|
prop= RNA_def_property(srna, "snap_translate", PROP_BOOLEAN, PROP_NONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user