Setting multiple light properties using sim::Light
doesn't work properly
#2532
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
We accept pull requests!
Environment
Description
sim::Light::SetDiffuseColor
followed bysim::Light::SetSpecularColor
to work. Example:gz-sim/src/Light.cc
Lines 326 to 344 in 523b01b
SetDiffuseColor
orSetSpecularColor
will set theLightCmd
component. But if you call one after the other without a whole step in between, theLightCmd
from one will overwrite the other. The code already checks if there's aLightCmd
component, but instead of updating the value of the component, it always replaces it with a new value.The text was updated successfully, but these errors were encountered: