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:
authorWilliam Reynish <william@reynish.com>2009-11-05 20:22:11 +0300
committerWilliam Reynish <william@reynish.com>2009-11-05 20:22:11 +0300
commit93b2ed382259f6dd43839ae9331c2f13191dd81e (patch)
tree414cf14756ca42982068eba82bacfe1222f437f9 /source/blender/editors
parent82baca3f365d2d6e67dcb722f17497ee6fa3efc7 (diff)
Moved the object and bone name fields out of the Transform panel in 3Dview properties. They're in a new panel now called 'Item'. Needs an update in the B.blend to put it on the top.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/view3d_buttons.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c
index 1e4e2424193..8c0eff49020 100644
--- a/source/blender/editors/space_view3d/view3d_buttons.c
+++ b/source/blender/editors/space_view3d/view3d_buttons.c
@@ -590,17 +590,9 @@ static void v3d_posearmature_buts(uiLayout *layout, View3D *v3d, Object *ob, flo
if(bone && (bone->flag & BONE_ACTIVE) && (bone->layer & arm->layer))
break;
}
- if (!pchan) {
- row= uiLayoutRow(layout, 0);
- uiItemL(row, "No Active Bone", 0);
- return;
- }
- row= uiLayoutRow(layout, 0);
+// row= uiLayoutRow(layout, 0);
RNA_pointer_create(&ob->id, &RNA_PoseChannel, pchan, &pchanptr);
-
- uiItemL(row, "", ICON_BONE_DATA);
- uiItemR(row, "", 0, &pchanptr, "name", 0);
col= uiLayoutColumn(layout, 0);
@@ -702,10 +694,9 @@ static void v3d_editarmature_buts(uiLayout *layout, View3D *v3d, Object *ob, flo
if (!ebone)
return;
- row= uiLayoutRow(layout, 0);
+// row= uiLayoutRow(layout, 0);
RNA_pointer_create(&arm->id, &RNA_EditBone, ebone, &eboneptr);
- uiItemL(row, "", ICON_BONE_DATA);
- uiItemR(row, "", 0, &eboneptr, "name", 0);
+
col= uiLayoutColumn(layout, 0);
uiItemR(col, "Head", 0, &eboneptr, "head", 0);
@@ -732,10 +723,7 @@ static void v3d_editmetaball_buts(uiLayout *layout, Object *ob, float lim)
RNA_pointer_create(&mball->id, &RNA_MetaBall, mball, &mbptr);
- row= uiLayoutRow(layout, 0);
-
- uiItemL(row, "", ICON_META_DATA);
- uiItemR(row, "", 0, &mbptr, "name", 0);
+// row= uiLayoutRow(layout, 0);
RNA_pointer_create(&mball->id, &RNA_MetaElement, mball->lastelem, &ptr);
@@ -1089,8 +1077,6 @@ static void view3d_panel_object(const bContext *C, Panel *pa)
col= uiLayoutColumn(pa->layout, 0);
row= uiLayoutRow(col, 0);
RNA_id_pointer_create(&ob->id, &obptr);
- uiItemL(row, "", ICON_OBJECT_DATA);
- uiItemR(row, "", 0, &obptr, "name", 0);
if(ob==obedit) {
if(ob->type==OB_ARMATURE) v3d_editarmature_buts(col, v3d, ob, lim);