Skip to content

Commit

Permalink
Fix: Address light properties issue in sim::Light gazebosim#2532
Browse files Browse the repository at this point in the history
  • Loading branch information
shr-eyas committed Oct 29, 2024
1 parent 990f1c2 commit 2a76a77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Light.cc
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void Light::SetDiffuseColor(EntityComponentManager &_ecm,
}
else
{
lightCmd->Data() = lightMsg;
lightCmd->Data().mutable_diffuse()->CopyFrom(lightMsg.diffuse());
}
}

Expand All @@ -360,7 +360,7 @@ void Light::SetSpecularColor(EntityComponentManager &_ecm,
}
else
{
lightCmd->Data() = lightMsg;
lightCmd->Data().mutable_specular()->CopyFrom(lightMsg.specular());
}
}

Expand Down

0 comments on commit 2a76a77

Please sign in to comment.