Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2011-12-07 01:25:46 +0400
committerThomas Dinges <blender@dingto.org>2011-12-07 01:25:46 +0400
commit967edae8b6b262697f42137cb548db450d1cc946 (patch)
treeaf7010ed17ebec2094d67f88babfb27bbdf73a76 /source/blender/editors/space_node
parent9f96c97cacd65727238188a936965e9a931f463f (diff)
Tile Branch:
* Some UI cleanup of the Viewer Center Buttons + naming fixes. * Fixing some align booleans in the UI code, there is only 0 and 1. ToDo: Do not re composite when changing the center value.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/drawnode.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index 22144b74af1..6025462666a 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -1816,10 +1816,10 @@ static void node_composit_buts_switch(uiLayout *layout, bContext *UNUSED(C), Poi
static void node_composit_buts_boxmask(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
{
uiLayout *row;
- row= uiLayoutRow(layout, 2);
+ row= uiLayoutRow(layout, 1);
uiItemR(row, ptr, "x", 0, NULL, ICON_NONE);
uiItemR(row, ptr, "y", 0, NULL, ICON_NONE);
- row= uiLayoutRow(layout, 2);
+ row= uiLayoutRow(layout, 1);
uiItemR(row, ptr, "width", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
uiItemR(row, ptr, "height", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
@@ -1941,10 +1941,10 @@ void node_composit_backdrop_ellipsemask(SpaceNode* snode, ImBuf* backdrop, bNode
static void node_composit_buts_ellipsemask(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
{
uiLayout *row;
- row= uiLayoutRow(layout, 2);
+ row= uiLayoutRow(layout, 1);
uiItemR(row, ptr, "x", 0, NULL, ICON_NONE);
uiItemR(row, ptr, "y", 0, NULL, ICON_NONE);
- row= uiLayoutRow(layout, 2);
+ row= uiLayoutRow(layout, 1);
uiItemR(row, ptr, "width", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
uiItemR(row, ptr, "height", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
@@ -1953,10 +1953,13 @@ static void node_composit_buts_ellipsemask(uiLayout *layout, bContext *UNUSED(C)
}
static void node_composit_buts_viewer_but(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
{
+ uiLayout *col;
+
uiItemR(layout, ptr, "tileorder", 0, NULL, ICON_NONE);
if (RNA_enum_get(ptr, "tileorder")==0) {
- uiItemR(layout, ptr, "centerx", 0, NULL, ICON_NONE);
- uiItemR(layout, ptr, "centery", 0, NULL, ICON_NONE);
+ col= uiLayoutColumn(layout, 1);
+ uiItemR(col, ptr, "center_x", 0, NULL, ICON_NONE);
+ uiItemR(col, ptr, "center_y", 0, NULL, ICON_NONE);
}
}