mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-23 19:20:56 +00:00
Pass a Vec4f by reference
This commit is contained in:
parent
236bfa3678
commit
0597c8fd9c
@ -125,7 +125,7 @@ namespace SceneUtil
|
||||
traverse(node, nv);
|
||||
}
|
||||
|
||||
void LightController::setDiffuse(osg::Vec4f color)
|
||||
void LightController::setDiffuse(const osg::Vec4f& color)
|
||||
{
|
||||
mDiffuseColor = color;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ namespace SceneUtil
|
||||
|
||||
void setType(LightType type);
|
||||
|
||||
void setDiffuse(osg::Vec4f color);
|
||||
void setDiffuse(const osg::Vec4f& color);
|
||||
|
||||
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user