Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Initialize default shadow caster name in Scene #3067

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

scpeters
Copy link
Member

Since #3048, we can now specify the name of a shadow caster material to be used in a scene. This is parsed from the SDFormat world file by gazebo::physics::World and exposed to gazebo::rendering::Scene by an ion-transport service. If the service call fails, however, the Scene does not have a valid name for the shadow caster material. This sets the default value for the shadow caster material name in the Scene to match the default value in World.cc.

The shadow caster name in the Scene is empty if the ignition
transport service call fails, so initialize it to the default
value.

Follow up to gazebosim#3048.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters scpeters requested a review from WilliamLewww August 17, 2021 18:13
@scpeters scpeters merged commit d8907fd into gazebosim:gazebo11 Aug 17, 2021
@scpeters scpeters deleted the init_scene_shadow_caster_name branch August 17, 2021 23:04
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants