Show
Ignore:
Timestamp:
10/23/09 22:35:31 (4 years ago)
Author:
cedricpinson
Message:

From Cedric Pinson, Simplify update callback api in osgAnimation, the decision to link is on the manager or user

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgAnimation/UpdateCallback.cpp

    r10671 r10689  
    9090} 
    9191 
    92 bool UpdateTransform::needLink() const 
    93 { 
    94     // the idea is to return true if nothing is linked 
    95     return !((_position->getCount() + _euler->getCount() + _scale->getCount()) > 3); 
    96 } 
    97  
    9892bool UpdateTransform::link(osgAnimation::Channel* channel) 
    9993{ 
     
    153147} 
    154148 
    155 bool UpdateMaterial::needLink() const 
    156 { 
    157     // the idea is to return true if nothing is linked 
    158     return (_diffuse->getCount() < 2); 
    159 } 
    160  
    161149bool UpdateMaterial::link(osgAnimation::Channel* channel) 
    162150{