Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Module/cosmeticsmods/texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ def recolor_textures(self) -> list[ModAsset]:
return assets

base_path = appconfig.extracted_game_path("kh2")
if not base_path.is_dir():
print(f"Could not find extracted data at {base_path} - not recoloring textures")
if base_path is None:
print(f"Could not find extracted KH2 game data - not recoloring textures")
return assets

recolorable_models = self.load_recolorable_models()
Expand Down
4 changes: 2 additions & 2 deletions UI/Submenus/TextureRecolorSettingsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def __init__(self, seed_settings: SeedSettings):
self.conditions_loader = TextureConditionsLoader()

self.base_path = appconfig.extracted_game_path("kh2")
if not self.base_path.is_dir():
if self.base_path is None:
# Really shouldn't be able to get here without something weird going on, just note it and return
print(f"Could not find extracted data at {self.base_path}")
print(f"Could not find extracted KH2 game data")
return

all_models = TextureRecolorizer.load_recolorable_models()
Expand Down
Loading