forked from teamnwah/openmw-tes3coop
Pass a Vec4f by reference
This commit is contained in:
parent
4038f49d81
commit
dca0e2f582
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue