diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index 919187a4abe..8fcd55fd6f9 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -2730,7 +2730,7 @@ static void object_panel_draw(Object *ob) uiSetButLock(object_is_libdata(ob), ERROR_LIBDATA_MESSAGE); /* LAYERS */ - xco= 80; + xco= 65; dx= 35; dy= 30; @@ -2752,7 +2752,10 @@ static void object_panel_draw(Object *ob) uiBlockEndAlign(block); /* Object Color */ - uiDefButF(block, COL, REDRAWVIEW3D, "", 270, 165,30, 30, ob->col, 0, 0, 0, 0, "Object color, used when faces have the ObCol mode enabled"); + uiBlockBeginAlign(block); + uiDefButF(block, COL, REDRAWVIEW3D, "", 250, 180, 50, 15, ob->col, 0, 0, 0, 0, "Object color, used when faces have the ObCol mode enabled"); + uiDefButF(block, NUM, REDRAWVIEW3D, "A:", 250, 165, 50, 15, &ob->col[3], 0.0f, 1.0f, 10, 2, "Object alpha, used when faces have the ObCol mode enabled"); + uiBlockEndAlign(block); uiDefBut(block, LABEL, 0, "Drawtype", 10,120,100,20, NULL, 0, 0, 0, 0, "");