Show
Ignore:
Timestamp:
03/17/08 13:23:06 (6 years ago)
Author:
robert
Message:

Fixed moving model bug where the moving model code was looking for a transform with DataVariance? set to DYNAMIC, but the scene graph set up code was leaving the setting to default to STATIC. Fix involved setting DataVariance? on moving transoforms to DYNAMIC.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgparticleeffects/osgparticleeffects.cpp

    r6941 r7964  
    9595        positioned->addChild(glider); 
    9696     
    97         osg::PositionAttitudeTransform* xform = new osg::PositionAttitudeTransform;     
     97        osg::PositionAttitudeTransform* xform = new osg::PositionAttitudeTransform; 
     98        xform->setDataVariance(osg::Object::DYNAMIC); 
    9899        xform->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON); 
    99100        xform->setUpdateCallback(new osg::AnimationPathCallback(animationPath,0.0,0.5)); 
     
    120121     
    121122        osg::MatrixTransform* xform = new osg::MatrixTransform; 
     123        xform->setDataVariance(osg::Object::DYNAMIC); 
    122124        xform->setUpdateCallback(new osg::AnimationPathCallback(animationPath,0.0f,1.0)); 
    123125        xform->addChild(positioned);