Changed osgAnimation::StackedTransform::update(t). It can now be used for custom usage

This commit is contained in:
Cedric Pinson
2012-03-11 22:05:29 +00:00
parent d546f95412
commit df82754203
13 changed files with 15 additions and 15 deletions

View File

@@ -30,21 +30,21 @@ StackedTransform::StackedTransform(const StackedTransform& rhs, const osg::CopyO
}
void StackedTransform::update()
void StackedTransform::update(float t)
{
int dirty = 0;
for (StackedTransform::iterator it = begin(); it != end(); ++it)
{
StackedTransformElement* element = it->get();
if (!element)
continue;
// update and check if there are changes
element->update();
element->update(t);
if (element->isIdentity())
continue;
dirty++;
}
if (!dirty)
return;