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
path: root/source
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2008-01-28 04:15:21 +0300
committerMartin Poirier <theeth@yahoo.com>2008-01-28 04:15:21 +0300
commit0799c2665cfdcb965d6c10a9ff98d8943b5bdf14 (patch)
treeb40e49fa10275070bb35d85f5f8fe7b57aae0db5 /source
parent39689cbf73e7c0f5a44a0f667c85315352da6f4e (diff)
=== Custom Orientations ===
Change selection icon in the panel to the more appropriate Checkbox icon.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawview.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index c7955fda2fc..344fda5eef9 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -2295,7 +2295,12 @@ static void view3d_panel_transform_spaces(short cntrl)
for (index = V3D_MANIP_CUSTOM, ts = transform_spaces->first ; ts ; ts = ts->next, index++) {
BIF_ThemeColor(TH_BUT_ACTION);
- but = uiDefIconButS(block,ROW, REDRAWHEADERS, ICON_RIGHTARROW_THIN, xco,yco,XIC,YIC, &G.vd->twmode, 5.0, (float)index, 0, 0, "Use this Custom Transform Orientation");
+ if (G.vd->twmode == index) {
+ but = uiDefIconButS(block,ROW, REDRAWHEADERS, ICON_CHECKBOX_HLT, xco,yco,XIC,YIC, &G.vd->twmode, 5.0, (float)index, 0, 0, "Use this Custom Transform Orientation");
+ }
+ else {
+ but = uiDefIconButS(block,ROW, REDRAWHEADERS, ICON_CHECKBOX_DEHLT, xco,yco,XIC,YIC, &G.vd->twmode, 5.0, (float)index, 0, 0, "Use this Custom Transform Orientation");
+ }
uiButSetFunc(but, selectTransformOrientation_func, ts, NULL);
uiDefBut(block, TEX, 0, "", xco+=XIC, yco,100+XIC,20, &ts->name, 0, 30, 0, 0, "Edits the name of this Transform Orientation");
but = uiDefIconBut(block, BUT, REDRAWVIEW3D, ICON_X, xco+=100+XIC,yco,XIC,YIC, 0, 0, 0, 0, 0, "Deletes this Transform Orientation");