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>2005-12-18 23:57:04 +0300
committerTon Roosendaal <ton@blender.org>2005-12-18 23:57:04 +0300
commit2986d03e773f5905eb3a94f93231c21af13b9cf8 (patch)
treeca77ee466fa1c95c55cab32613ba85dbe8f2de14 /source/blender/src/drawarmature.c
parent0c76f64554465ebeb341bb8e098b065e47b45816 (diff)
Orange: Made dashed parent-offset lines option for drawing Poses.
Was too ugly! :)
Diffstat (limited to 'source/blender/src/drawarmature.c')
-rw-r--r--source/blender/src/drawarmature.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c
index 3843eedebcd..865797c183d 100644
--- a/source/blender/src/drawarmature.c
+++ b/source/blender/src/drawarmature.c
@@ -1327,6 +1327,7 @@ static void draw_pose_channels(Base *base, int dt)
/* hacky... prevent outline select from drawing dashed helplines */
glGetFloatv(GL_LINE_WIDTH, &tmp);
if(tmp > 1.1) do_dashed= 0;
+ if(arm->flag & ARM_NO_PARLINES) do_dashed= 0;
/* precalc inverse matrix for drawing screen aligned */
if(arm->drawtype==ARM_ENVELOPE) {
@@ -1416,7 +1417,7 @@ static void draw_pose_channels(Base *base, int dt)
if(bone && !(bone->flag & BONE_HIDDEN_P)) {
if(bone->layer & arm->layer) {
if (do_dashed && bone->parent) {
- // Draw a line from our root to the parent's tip
+ /* Draw a line from our root to the parent's tip */
if(!(bone->flag & BONE_CONNECTED) ){
if (arm->flag & ARM_POSEMODE) {
glLoadName (index & 0xFFFF); // object tag, for bordersel optim