~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/src/drawarmature.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: drawarmature.c,v 1.41 2007/01/30 21:43:01 aligorith Exp $
 
2
 * $Id: drawarmature.c,v 1.44 2007/05/03 10:31:20 aligorith Exp $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
447
447
        /* move vector back */
448
448
        Mat4Mul3Vecfl(imat, dirvec);
449
449
        
450
 
        if(0.0f != Normalise(dirvec)) {
 
450
        if(0.0f != Normalize(dirvec)) {
451
451
                float norvec[3], vec1[3], vec2[3], vec[3];
452
452
                int a;
453
453
                
591
591
        /* move vector back */
592
592
        Mat4Mul3Vecfl(imat, dirvec);
593
593
        
594
 
        if(0.0f != Normalise(dirvec)) {
 
594
        if(0.0f != Normalize(dirvec)) {
595
595
                float norvech[3], norvect[3], vec[3];
596
596
                
597
597
                VECCOPY(vec, dirvec);
759
759
        gluDeleteQuadric(qobj);  
760
760
}
761
761
 
762
 
static char bm_dot6[]= {0x0, 0x18, 0x3C, 0x7E, 0x7E, 0x3C, 0x18, 0x0}; 
763
 
static char bm_dot8[]= {0x3C, 0x7E, 0xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x3C}; 
 
762
static GLubyte bm_dot6[]= {0x0, 0x18, 0x3C, 0x7E, 0x7E, 0x3C, 0x18, 0x0}; 
 
763
static GLubyte bm_dot8[]= {0x3C, 0x7E, 0xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x3C}; 
764
764
 
765
 
static char bm_dot5[]= {0x0, 0x0, 0x10, 0x38, 0x7c, 0x38, 0x10, 0x0}; 
766
 
static char bm_dot7[]= {0x0, 0x38, 0x7C, 0xFE, 0xFE, 0xFE, 0x7C, 0x38}; 
 
765
static GLubyte bm_dot5[]= {0x0, 0x0, 0x10, 0x38, 0x7c, 0x38, 0x10, 0x0}; 
 
766
static GLubyte bm_dot7[]= {0x0, 0x38, 0x7C, 0xFE, 0xFE, 0xFE, 0x7C, 0x38}; 
767
767
 
768
768
 
769
769
static void draw_line_bone(int armflag, int boneflag, int constflag, unsigned int id, bPoseChannel *pchan, EditBone *ebone)
840
840
                                else if(constflag & PCHAN_HAS_CONST) glColor3ub(0, 255, 120);
841
841
                                else BIF_ThemeColor(TH_BONE_POSE);      // PCHAN_HAS_ACTION 
842
842
                        }
843
 
                        else BIF_ThemeColor(TH_BACK);
 
843
                        else BIF_ThemeColorShade(TH_BACK, -30);
844
844
                }
845
845
        }
846
846
        
860
860
        
861
861
   if(armflag & ARM_EDITMODE) {
862
862
           if (boneflag & BONE_SELECTED) BIF_ThemeColor(TH_EDGE_SELECT);
863
 
           else BIF_ThemeColor(TH_BACK);
 
863
           else BIF_ThemeColorShade(TH_BACK, -30);
864
864
   }
865
865
        glBegin(GL_LINES);
866
866
        glVertex3f(0.0f, 0.0f, 0.0f);