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

« back to all changes in this revision

Viewing changes to source/blender/src/poseobject.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: poseobject.c,v 1.55 2007/01/30 01:04:39 aligorith Exp $
 
2
 * $Id: poseobject.c,v 1.57 2007/04/28 03:01:12 aligorith Exp $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
521
521
                                (pchan!=pchanact)
522
522
                        ) {
523
523
                                switch (nr) {
524
 
                                        case 1:
 
524
                                        case 1: /* Local Location */
525
525
                                                VECCOPY(pchan->loc, pchanact->loc);
526
526
                                                break;
527
 
                                        case 2:
 
527
                                        case 2: /* Local Rotation */
528
528
                                                QUATCOPY(pchan->quat, pchanact->quat);
529
529
                                                break;
530
 
                                        case 3:
 
530
                                        case 3: /* Local Size */
531
531
                                                VECCOPY(pchan->size, pchanact->size);
532
532
                                                break;
533
 
                                        case 4:
 
533
                                        case 4: /* All Constraints */
534
534
                                        {
535
535
                                                free_constraints(&pchan->constraints);
536
536
                                                copy_constraints(&pchan->constraints, &pchanact->constraints);
537
537
                                                pchan->constflag = pchanact->constflag;
538
538
                                        }
539
539
                                                break;
540
 
                                        case 6:
 
540
                                        case 6: /* Transform Locks */
541
541
                                                pchan->protectflag = pchanact->protectflag;
542
542
                                                break;
543
 
                                        case 7:
 
543
                                        case 7: /* IK (DOF) settings */
544
544
                                        {
545
545
                                                pchan->ikflag = pchanact->ikflag;
546
546
                                                VECCOPY(pchan->limitmin, pchanact->limitmin);
549
549
                                                pchan->ikstretch= pchanact->ikstretch;
550
550
                                        }
551
551
                                                break;
552
 
                                        case 8:
 
552
                                        case 8: /* Custom Bone Shape */
553
553
                                                pchan->custom = pchanact->custom;
554
554
                                                break;
555
 
                                        case 9:
 
555
                                        case 9: /* Visual Location */
556
556
                                                armature_loc_pose_to_bone(pchan, pchanact->pose_mat[3], pchan->loc);
557
557
                                                break;
558
 
                                        case 10:
 
558
                                        case 10: /* Visual Rotation */
559
559
                                        {
560
560
                                                float delta_mat[4][4], quat[4];
561
561
                                                
564
564
                                                QUATCOPY(pchan->quat, quat);
565
565
                                        }
566
566
                                                break;
567
 
                                        case 11:
 
567
                                        case 11: /* Visual Size */
568
568
                                        {
569
569
                                                float delta_mat[4][4], size[4];
570
570
                                                
674
674
                return;
675
675
        }
676
676
        
 
677
        if(pose_has_protected_selected(ob, 1))
 
678
                return;
 
679
        
677
680
        /* Safely merge all of the channels in this pose into
678
681
        any existing pose */
679
682
        for (chan=g_posebuf->chanbase.first; chan; chan=chan->next){