From 2a76a777c038398154d07ed22e385918f58e35c5 Mon Sep 17 00:00:00 2001 From: shreyas Date: Wed, 30 Oct 2024 02:06:12 +0530 Subject: [PATCH] Fix: Address light properties issue in sim::Light #2532 --- src/Light.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Light.cc b/src/Light.cc index bcec0ca0b2..a387a47bdf 100644 --- a/src/Light.cc +++ b/src/Light.cc @@ -339,7 +339,7 @@ void Light::SetDiffuseColor(EntityComponentManager &_ecm, } else { - lightCmd->Data() = lightMsg; + lightCmd->Data().mutable_diffuse()->CopyFrom(lightMsg.diffuse()); } } @@ -360,7 +360,7 @@ void Light::SetSpecularColor(EntityComponentManager &_ecm, } else { - lightCmd->Data() = lightMsg; + lightCmd->Data().mutable_specular()->CopyFrom(lightMsg.specular()); } }