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:
authorTon Roosendaal <ton@blender.org>2006-11-01 17:29:06 +0300
committerTon Roosendaal <ton@blender.org>2006-11-01 17:29:06 +0300
commitf5fc880a41d990a337df6e0c2e6743a54da043fd (patch)
treedd265233fd3e76ce89b221b69223524a7696ab16 /source/blender/src/drawarmature.c
parentb96179d6898444beac24bcaed86514cc87164247 (diff)
Plumiferos request: Added button in Armature options panel to set custom
bone drawing on/off. Is default on.
Diffstat (limited to 'source/blender/src/drawarmature.c')
-rw-r--r--source/blender/src/drawarmature.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c
index 083125442af..4f554530675 100644
--- a/source/blender/src/drawarmature.c
+++ b/source/blender/src/drawarmature.c
@@ -1378,7 +1378,7 @@ static void draw_pose_channels(Base *base, int dt)
if(bone->parent && (bone->parent->flag & BONE_HIDDEN_P))
flag &= ~BONE_CONNECTED;
- if(pchan->custom)
+ if(pchan->custom && !(arm->flag & ARM_NO_CUSTOM))
draw_custom_bone(pchan->custom, OB_SOLID, arm->flag, flag, index, bone->length);
else if(arm->drawtype==ARM_LINE)
; /* nothing in solid */
@@ -1465,7 +1465,7 @@ static void draw_pose_channels(Base *base, int dt)
if(pchan->flag & POSE_STRIDE)
constflag |= PCHAN_HAS_STRIDE;
- if(pchan->custom) {
+ if(pchan->custom && !(arm->flag & ARM_NO_CUSTOM)) {
if(dt<OB_SOLID)
draw_custom_bone(pchan->custom, OB_WIRE, arm->flag, flag, index, bone->length);
}