From c9400adb7b47c5eb89644fb7555e7b4fa039a7b8 Mon Sep 17 00:00:00 2001 From: Diego Hernan Borghetti Date: Thu, 3 Apr 2008 14:50:11 -0300 Subject: [PATCH] add a button for object color access, previously could only be accessed via Ipos Author: Campbell Barton SVN revision: r14303 Date: 2008-04-01 07:10:37 -0300 (Tue, 01 Apr 2008) --- source/blender/src/buttons_object.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index fbef28f..3e097ba 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -2141,7 +2141,7 @@ static void object_panel_draw(Object *ob) uiSetButLock(object_data_is_libdata(ob), ERROR_LIBDATA_MESSAGE); /* LAYERS */ - xco= 120; + xco= 80; dx= 35; dy= 30; @@ -2162,6 +2162,9 @@ 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"); + uiDefBut(block, LABEL, 0, "Drawtype", 10,120,100,20, NULL, 0, 0, 0, 0, ""); uiBlockBeginAlign(block); -- 2.11.4.GIT