* Added a new 'bone constraint' property editor icon and panel titles to distinguish bone constraints from object constraints

It was a bit too confusing and people were easily getting them mixed up.
This commit is contained in:
Matt Ebb 2009-11-02 11:36:45 +00:00
parent 3b43a5228e
commit 4b8c64246e
5 changed files with 6103 additions and 6087 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 190 KiB

@ -611,7 +611,7 @@ class ConstraintButtonsPanel(bpy.types.Panel):
class OBJECT_PT_constraints(ConstraintButtonsPanel):
bl_label = "Constraints"
bl_label = "Object Constraints"
bl_context = "constraint"
def poll(self, context):
@ -764,7 +764,7 @@ class BONE_PT_iksolver_itasc(ConstraintButtonsPanel):
class BONE_PT_constraints(ConstraintButtonsPanel):
bl_label = "Constraints"
bl_label = "Bone Constraints"
bl_context = "bone_constraint"
def poll(self, context):

File diff suppressed because it is too large Load Diff

@ -219,7 +219,7 @@ DEF_ICON(ICON_POSE_DATA)
DEF_ICON(ICON_BONE_DATA)
DEF_ICON(ICON_CONSTRAINT)
DEF_ICON(ICON_SHAPEKEY_DATA)
DEF_ICON(ICON_BLANK079a)
DEF_ICON(ICON_CONSTRAINT_BONE)
DEF_ICON(ICON_BLANK079)
DEF_ICON(ICON_PACKAGE)
DEF_ICON(ICON_UGLYPACKAGE)

@ -124,7 +124,7 @@ void buttons_header_buttons(const bContext *C, ARegion *ar)
if(sbuts->pathflag & (1<<BCONTEXT_BONE))
uiDefIconButS(block, ROW, B_CONTEXT_SWITCH, ICON_BONE_DATA, xco+=BUTS_UI_UNIT, yco, BUTS_UI_UNIT, BUTS_UI_UNIT, &(sbuts->mainb), 0.0, (float)BCONTEXT_BONE, 0, 0, "Bone");
if(sbuts->pathflag & (1<<BCONTEXT_BONE_CONSTRAINT))
uiDefIconButS(block, ROW, B_CONTEXT_SWITCH, ICON_CONSTRAINT, xco+=BUTS_UI_UNIT, yco, BUTS_UI_UNIT, BUTS_UI_UNIT, &(sbuts->mainb), 0.0, (float)BCONTEXT_BONE_CONSTRAINT, 0, 0, "Bone Constraints");
uiDefIconButS(block, ROW, B_CONTEXT_SWITCH, ICON_CONSTRAINT_BONE, xco+=BUTS_UI_UNIT, yco, BUTS_UI_UNIT, BUTS_UI_UNIT, &(sbuts->mainb), 0.0, (float)BCONTEXT_BONE_CONSTRAINT, 0, 0, "Bone Constraints");
if(sbuts->pathflag & (1<<BCONTEXT_MATERIAL))
uiDefIconButS(block, ROW, B_CONTEXT_SWITCH, ICON_MATERIAL, xco+=BUTS_UI_UNIT, yco, BUTS_UI_UNIT, BUTS_UI_UNIT, &(sbuts->mainb), 0.0, (float)BCONTEXT_MATERIAL, 0, 0, "Material");
if(sbuts->pathflag & (1<<BCONTEXT_TEXTURE))