From 95531b169c351f1e55088cb208725d5027825c40 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Thu, 10 Dec 2020 10:44:27 -0800 Subject: [PATCH] fix light map uri 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") {