Skip to content

Commit

Permalink
0.4.1 hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hakasapl committed Jul 19, 2024
1 parent 4fc70a2 commit acbd8c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.4.1] - 2024-07-18

- Fixed already generated complex parallax maps regenerating if a heightmap was also included

## [0.4.0] - 2024-07-18

- Added --upgrade-shader argument to enable upgrading vanilla parallax to complex material
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(PROJECT_NAME "ParallaxGen")
set(PROJECT_URI "com.github.hakasapl.ParallaxGen")

# Initialize Project
set(PARALLAXGEN_VERSION 0.4.0)
set(PARALLAXGEN_VERSION 0.4.1)
project(${PROJECT_NAME} VERSION ${PARALLAXGEN_VERSION})

# Define preprocessor macro with the version number
Expand Down
6 changes: 6 additions & 0 deletions src/ParallaxGen/ParallaxGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ void ParallaxGen::upgradeShaders()
fs::path env_map_path = pgd->changeDDSSuffix(height_map, L"_m");
fs::path complex_map_path = env_map_path;

if (pgd->isFile(env_map_path) && pgd->isComplexMaterialMap(env_map_path)) {
// already upgraded
finished_task++;
continue;
}

if (!pgd->isFile(env_map_path))
{
// no env map
Expand Down

0 comments on commit acbd8c6

Please sign in to comment.