Changed Billboard::g/setPos(..) to g/setPosition(..).

This commit is contained in:
Robert Osfield
2004-06-14 19:34:43 +00:00
parent 9a683e837d
commit 2d35b3cc27
5 changed files with 14 additions and 7 deletions

View File

@@ -787,7 +787,7 @@ void CullVisitor::apply(Billboard& node)
for(unsigned int i=0;i<node.getNumDrawables();++i)
{
const Vec3& pos = node.getPos(i);
const Vec3& pos = node.getPosition(i);
Drawable* drawable = node.getDrawable(i);
// need to modify isCulled to handle the billboard offset.

View File

@@ -704,7 +704,7 @@ void CollectLowestTransformsVisitor::doTransform(osg::Object* obj,osg::Matrix& m
for(unsigned int i=0;i<billboard->getNumDrawables();++i)
{
billboard->setPos(i,billboard->getPos(i)*matrix);
billboard->setPosition(i,billboard->getPosition(i)*matrix);
billboard->getDrawable(i)->accept(tf);
billboard->getDrawable(i)->dirtyBound();
}