[#25211] Impossible to select an armature with shapes

broke since 2.49b, highly confusing function.
Stick bones dont draw solid so cant run glLoadName() in this case.

Tested pose/object mode with all armature draw types and view draw modes.
This commit is contained in:
Campbell Barton
2010-12-14 06:20:28 +00:00
parent 96eeb9ad93
commit c52ba88f79

View File

@@ -1753,8 +1753,8 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
if (index != -1)
index+= 0x10000; // pose bones count in higher 2 bytes only
}
if (draw_wire) {
/* stick bones have not been drawn yet so dont clear object selection in this case */
if ((arm->drawtype != ARM_LINE) && draw_wire) {
/* object tag, for bordersel optim */
glLoadName(index & 0xFFFF);
index= -1;