mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 06:15:32 +00:00
Remove unneeded cast
This commit is contained in:
parent
e39f49a88f
commit
1d5af3c9c8
1 changed files with 2 additions and 3 deletions
|
@ -113,7 +113,7 @@ namespace
|
|||
}
|
||||
};
|
||||
|
||||
// NodeCallback used to have a transform always oriented towards the camera. Can have translation and scale
|
||||
// NodeCallback used to have a node always oriented towards the camera. The node can have translation and scale
|
||||
// set just like a regular MatrixTransform, but the rotation set will be overridden in order to face the camera.
|
||||
// Must be set as a cull callback.
|
||||
class BillboardCallback : public osg::NodeCallback
|
||||
|
@ -132,8 +132,7 @@ namespace
|
|||
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)
|
||||
{
|
||||
osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(nv);
|
||||
osg::MatrixTransform* billboardNode = dynamic_cast<osg::MatrixTransform*>(node);
|
||||
if (billboardNode && cv)
|
||||
if (node && cv)
|
||||
{
|
||||
osg::Matrix modelView = *cv->getModelViewMatrix();
|
||||
|
||||
|
|
Loading…
Reference in a new issue