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

Commit

Permalink
Initialize default shadow caster name in Scene (#3067)
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 #3048.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters authored Aug 17, 2021
1 parent 17c6930 commit d8907fd
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 d8907fd

Please sign in to comment.