From 95bbb334a0fdaf3ec6ea5de9e4a43d8c0a7881fd Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Wed, 16 Dec 2020 17:02:43 -0800 Subject: [PATCH] Fix light map URI (#146) Signed-off-by: Ian Chen --- src/LocalCache.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/LocalCache.cc b/src/LocalCache.cc index a2461b6b..a89c7d1b 100644 --- a/src/LocalCache.cc +++ b/src/LocalCache.cc @@ -656,6 +656,10 @@ void LocalCachePrivate::FixPathsInMaterialElement( workflowElem->FirstChildElement("emissive_map"); if (emissiveElem) this->FixPathsInUri(emissiveElem, _id); + tinyxml2::XMLElement *lightElem = + workflowElem->FirstChildElement("light_map"); + if (lightElem) + this->FixPathsInUri(lightElem, _id); // metal workflow specific elements if (workflow == "metal") {