mirror of
https://github.com/open-goal/jak-project
synced 2026-09-07 19:40:48 -04:00
[shrub] Fix bug with gs-prim settings (#2899)
Fix the bug described in https://github.com/open-goal/jak-project/issues/2882 where some shrubs are transparent when they shouldn't be. The problem was that we never carefully looked at the settings in `gs-prim`, which has a bit to enable/disable alpha blending entirely. Now it should be correct for both jak 1 and jak 2. To see this change, you'll need to re-extract. Also adds a setting to disable saving texture .pngs, to speed up decompilation. I left it on for jak 1 (to avoid confusion for texture swapping(, but off for jak 2 for now.
This commit is contained in:
@@ -272,6 +272,9 @@ Config make_config_via_json(nlohmann::json& json) {
|
||||
|
||||
config.levels_to_extract = inputs_json.at("levels_to_extract").get<std::vector<std::string>>();
|
||||
config.levels_extract = json.at("levels_extract").get<bool>();
|
||||
if (json.contains("save_texture_pngs")) {
|
||||
config.save_texture_pngs = json.at("save_texture_pngs").get<bool>();
|
||||
}
|
||||
|
||||
if (inputs_json.contains("animated_textures")) {
|
||||
config.animated_textures =
|
||||
|
||||
Reference in New Issue
Block a user