Show
Ignore:
Timestamp:
10/01/09 19:08:16 (5 years ago)
Author:
cedricpinson
Message:

From Michael Platings, In Target, the default constructor is explicitly called on _target. This is necessary for FloatTarget? and DoubleTarget? so that _target is initialised to 0, otherwise you get a junk value. In MorphGeometry?.cpp, UpdateMorph::link now links channels of the same index to the same target. Previously a new FloatTarget? was created for each channel, so multiple animations didn't work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgAnimation/Target

    r10576 r10599  
    5151    public: 
    5252             
    53         TemplateTarget() {} 
     53        TemplateTarget() : _target() {} 
    5454        TemplateTarget(const T& v) { setValue(v); } 
    5555        TemplateTarget(const TemplateTarget& v) { setValue(v.getValue()); }