UPdates to CullVisitor so that it keeps in sync with the new method paramter

change in osg::Billboard.

Removed in instance of an object being passed () brackets, have removed the
brackets to avoid an amiguity with the compiler intepreting it as a function.
This commit is contained in:
Robert Osfield
2002-01-18 22:36:56 +00:00
parent 58f72ee2d7
commit acf256c466
6 changed files with 12 additions and 33 deletions

View File

@@ -924,7 +924,8 @@ void CullVisitor::apply(Billboard& node)
StateSet* node_state = node.getStateSet();
if (node_state) pushStateSet(node_state);
Vec3 eye_local = getEyeLocal();
const Vec3& eye_local = getEyeLocal();
const Vec3& up_local = getUpLocal();
Matrix* matrix = getCurrentMatrix();
for(int i=0;i<node.getNumDrawables();++i)
@@ -950,7 +951,7 @@ void CullVisitor::apply(Billboard& node)
*/
Matrix* billboard_matrix = createOrReuseMatrix();
node.calcTransform(eye_local,pos,*billboard_matrix);
node.calcTransform(eye_local,up_local,pos,*billboard_matrix);
StateSet* stateset = drawable->getStateSet();