Fix thinWall and passes

This commit is contained in:
Moisés Peláez
2026-09-17 15:59:45 -04:00
parent 7d00036973
commit d0337f5dae
7 changed files with 60 additions and 33 deletions

View File

@ -384,7 +384,8 @@ def export_data_impl(fp, sdk_path):
os.utime(g, None)
# Write referenced shader passes
if not os.path.isfile(build_dir + '/compiled/Shaders/shader_datas.lnx') or state.last_world_defs != wrd.world_defs:
current_passes = tuple(sorted(assets.shader_passes))
if not os.path.isfile(build_dir + '/compiled/Shaders/shader_datas.lnx') or state.last_world_defs != wrd.world_defs or getattr(state, 'last_shader_passes', None) != current_passes:
res = {'shader_datas': []}
for ref in assets.shader_passes:
@ -431,6 +432,7 @@ def export_data_impl(fp, sdk_path):
if not os.path.exists(target):
shutil.copy(file, target)
state.last_world_defs = wrd.world_defs
state.last_shader_passes = current_passes
# Reset path
os.chdir(fp)