Commit 21eeb81b authored by cutealien's avatar cutealien

Fix bug in MaterialViewer - light control colors got initialized wrong.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4959 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 49bbb388
...@@ -302,8 +302,8 @@ void CTypicalColorsControl::updateMaterialColors(video::SMaterial & material) co ...@@ -302,8 +302,8 @@ void CTypicalColorsControl::updateMaterialColors(video::SMaterial & material) co
void CTypicalColorsControl::setColorsToLightDataColors(const video::SLight & lightData) void CTypicalColorsControl::setColorsToLightDataColors(const video::SLight & lightData)
{ {
ControlAmbientColor->setColor(lightData.AmbientColor.toSColor()); ControlAmbientColor->setColor(lightData.AmbientColor.toSColor());
ControlAmbientColor->setColor(lightData.DiffuseColor.toSColor()); ControlDiffuseColor->setColor(lightData.DiffuseColor.toSColor());
ControlAmbientColor->setColor(lightData.SpecularColor.toSColor()); ControlSpecularColor->setColor(lightData.SpecularColor.toSColor());
} }
// Update all changed colors in the light data // Update all changed colors in the light data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment