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-07-22 23:51:08 +0400
committerTon Roosendaal <ton@blender.org>2005-07-22 23:51:08 +0400
commit365bea41d66fb3f23577317341d07889dad16cfa (patch)
tree856c0d64638375eab72dec1c2d86f8c79bb2fb21 /source/blender/src/drawarmature.c
parent05d45b888b167ae0a31beac934520f6fc1628783 (diff)
Error in drawing of new armature options;
bglPolygonOffset(0) was accidentally called without it being set before, causing window matrix to go weird. :)
Diffstat (limited to 'source/blender/src/drawarmature.c')
-rw-r--r--source/blender/src/drawarmature.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c
index 3fdbf861099..9990908bf33 100644
--- a/source/blender/src/drawarmature.c
+++ b/source/blender/src/drawarmature.c
@@ -787,10 +787,13 @@ static void draw_pose_channels(Object *ob, int dt)
}
if (index!= -1) index++;
}
+ /* restore things */
+ if (arm->drawtype!=ARM_LINE && dt>OB_WIRE && (arm->flag & ARM_POSEMODE))
+ bglPolygonOffset(0.0);
+
}
- /* restore things */
- if (dt>OB_WIRE && (arm->flag & ARM_POSEMODE))
- bglPolygonOffset(0.0);
+
+ /* restore */
glDisable(GL_CULL_FACE);
/* finally names and axes */