1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Pass a Vec4f by reference

This commit is contained in:
scrawl 2016-01-03 16:43:20 +01:00
parent 236bfa3678
commit 0597c8fd9c
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ namespace SceneUtil
traverse(node, nv); traverse(node, nv);
} }
void LightController::setDiffuse(osg::Vec4f color) void LightController::setDiffuse(const osg::Vec4f& color)
{ {
mDiffuseColor = color; mDiffuseColor = color;
} }

View file

@ -24,7 +24,7 @@ namespace SceneUtil
void setType(LightType type); void setType(LightType type);
void setDiffuse(osg::Vec4f color); void setDiffuse(const osg::Vec4f& color);
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv); virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);