Skip to content

Commit

Permalink
cleanup for weapon/armor detection
Browse files Browse the repository at this point in the history
  • Loading branch information
hakasapl committed Jul 22, 2024
1 parent e8cebaa commit 6965076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/ParallaxGen/ParallaxGen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ParallaxGen
// which texture indices to search when mapping mesh shapes to parallax maps
static inline const std::array<uint32_t, 2> texture_maps_idx_search = { 0, 1 };

static inline const std::vector<std::wstring> dynCubemap_ignore_list = { L"armor", L"weapons" };

// bools to ignore parallax and/or complex material
bool ignore_parallax;
bool ignore_complex_material;
Expand Down
2 changes: 1 addition & 1 deletion src/ParallaxGen/ParallaxGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void ParallaxGen::processNIF(const fs::path& nif_file, vector<fs::path>& 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;
}

Expand Down

0 comments on commit 6965076

Please sign in to comment.