Ignore:
Timestamp:
01/26/14 05:53:23 (9 years ago)
Author:
sz
Message:

improved/bug fixed: delta joint mode (in f0 genotypes) is now triggered by any of dx/dy/dz fields, not just dx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/modelparts.cpp

    r109 r114  
    696696defassign();
    697697d.x=JOINT_DELTA_MARKER;
     698d.y=JOINT_DELTA_MARKER;
     699d.z=JOINT_DELTA_MARKER;
    698700part1=0; part2=0;
    699701flags=0;
     
    736738void Joint::resetDelta()
    737739{
    738 d=Pt3D(JOINT_DELTA_MARKER,0,0);
    739 }
    740 
    741 void Joint::useDelta(int false_or_true)
    742 {
    743 usedelta=false_or_true;
    744 }
    745 
    746 int Joint::isDelta()
     740d=Pt3D(JOINT_DELTA_MARKER,JOINT_DELTA_MARKER,JOINT_DELTA_MARKER);
     741}
     742
     743void Joint::resetDeltaMarkers()
     744{
     745if (d.x==JOINT_DELTA_MARKER) d.x=0;
     746if (d.y==JOINT_DELTA_MARKER) d.y=0;
     747if (d.z==JOINT_DELTA_MARKER) d.z=0;
     748}
     749
     750void Joint::useDelta(bool use)
     751{
     752usedelta=use;
     753}
     754
     755bool Joint::isDelta()
    747756{
    748757return usedelta;
Note: See TracChangeset for help on using the changeset viewer.