Error in drawing of new armature options;

bglPolygonOffset(0) was accidentally called without it being set before,
causing window matrix to go weird. :)
This commit is contained in:
Ton Roosendaal
2005-07-22 19:51:08 +00:00
parent 05d45b888b
commit 365bea41d6

View File

@@ -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 */