diff --git a/include/ParallaxGen/ParallaxGen.hpp b/include/ParallaxGen/ParallaxGen.hpp index f0515088..850cbbe7 100644 --- a/include/ParallaxGen/ParallaxGen.hpp +++ b/include/ParallaxGen/ParallaxGen.hpp @@ -24,6 +24,8 @@ class ParallaxGen // which texture indices to search when mapping mesh shapes to parallax maps static inline const std::array texture_maps_idx_search = { 0, 1 }; + static inline const std::vector dynCubemap_ignore_list = { L"armor", L"weapons" }; + // bools to ignore parallax and/or complex material bool ignore_parallax; bool ignore_complex_material; diff --git a/src/ParallaxGen/ParallaxGen.cpp b/src/ParallaxGen/ParallaxGen.cpp index cc2c1114..73add7db 100644 --- a/src/ParallaxGen/ParallaxGen.cpp +++ b/src/ParallaxGen/ParallaxGen.cpp @@ -314,7 +314,7 @@ void ParallaxGen::processNIF(const fs::path& nif_file, vector& heightM // check if this is weapon or armor bool dynCubemaps = true; - if (pgd->checkIfAnyComponentIs(nif_file, { L"weapons", L"armor" }) || boost::icontains(search_prefix, "armor") || boost::icontains(search_prefix, "weapon")) { + if (pgd->checkIfAnyComponentIs(nif_file, dynCubemap_ignore_list) || pgd->checkIfAnyComponentIs(search_prefix, dynCubemap_ignore_list)) { dynCubemaps = false; }