code cleanup: use booleans and const's for operator vars.
[blender.git] / source / blender / editors / space_view3d / drawarmature.c
index 8a7918d87bdf81ac9b82cbbfffd575c03449a595..cb685b59b643c2f215c47fbcea8cb38d9fefd7bb 100644 (file)
@@ -1737,7 +1737,7 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
                            ((G.f & G_PICKSEL) == 0 || (bone->flag & BONE_UNSELECTABLE) == 0))
                        {
                                if (bone->layer & arm->layer) {
-                                       int use_custom = (pchan->custom) && !(arm->flag & ARM_NO_CUSTOM);
+                                       const bool use_custom = (pchan->custom) && !(arm->flag & ARM_NO_CUSTOM);
                                        glPushMatrix();
                                        
                                        if (use_custom && pchan->custom_tx) {