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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user