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:
Diffstat (limited to 'source/blender/src/drawarmature.c')
-rw-r--r--source/blender/src/drawarmature.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c
index d53f58fad62..54d6bcb7d70 100644
--- a/source/blender/src/drawarmature.c
+++ b/source/blender/src/drawarmature.c
@@ -915,7 +915,7 @@ static void draw_ebones(Object *ob, int dt)
/* offset to parent */
if (eBone->parent) {
BIF_ThemeColor(TH_WIRE);
- glLoadName (index & 0xFFFF); // object tag, for bordersel optim
+ glLoadName (-1); // -1 here is OK!
setlinestyle(3);
glBegin(GL_LINES);
@@ -929,7 +929,8 @@ static void draw_ebones(Object *ob, int dt)
}
/* restore */
- if (dt>OB_WIRE) bglPolygonOffset(0.0);
+ if(arm->drawtype==ARM_LINE);
+ else if (dt>OB_WIRE) bglPolygonOffset(0.0);
/* finally names */
if(arm->flag & ARM_DRAWNAMES) {