Skip to content

Commit

Permalink
Initialize default shadow caster name in Scene
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
scpeters committed Aug 17, 2021
1 parent 17c6930 commit 7fd3e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gazebo/rendering/ScenePrivate.hh
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ namespace gazebo
public: std::map<int32_t, bool> layerState;

/// \brief Shadow caster material name
public: std::string shadowCasterMaterialName;
public: std::string shadowCasterMaterialName = "Gazebo/shadow_caster";
};
}
}
Expand Down

0 comments on commit 7fd3e1a

Please sign in to comment.