Skip to content

Commit

Permalink
fix build, use asFullPath
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Jan 30, 2021
1 parent d28afcc commit 1659774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Conversions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ sdf::Material ignition::gazebo::convert(const msgs::Material &_in)
workflow.SetEnvironmentMap(pbrMsg.environment_map());
workflow.SetAmbientOcclusionMap(pbrMsg.ambient_occlusion_map());
workflow.SetEmissiveMap(pbrMsg.emissive_map());
workflow.SetLightMap(pbrMsg.light_map());
workflow.SetLightMapTexCoordSet(pbrMsg.light_map_texcoord_set());
workflow.SetLightMap(pbrMsg.light_map(), pbrMsg.light_map_texcoord_set());

pbr.SetWorkflow(workflow.Type(), workflow);
out.SetPbrMaterial(pbr);
Expand Down
3 changes: 2 additions & 1 deletion src/rendering/SceneManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ rendering::MaterialPtr SceneManager::LoadMaterial(
std::string lightMap = workflow->LightMap();
if (!lightMap.empty())
{
std::string fullPath = common::findFile(lightMap);
std::string fullPath = common::findFile(
asFullPath(lightMap, _material.FilePath()));
if (!fullPath.empty())
{
unsigned int uvSet = workflow->LightMapTexCoordSet();
Expand Down

0 comments on commit 1659774

Please sign in to comment.