Skip to content

Commit

Permalink
Merge pull request #3015 from moisesjpelaez/main
Browse files Browse the repository at this point in the history
Move assets for published html5 games to /data folder
  • Loading branch information
luboslenco committed May 10, 2024
2 parents 63a3171 + 0286df5 commit cfa3dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blender/arm/write_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def write_khafilejs(is_play, export_physics: bool, export_navigation: bool, expo
khafile.write('project.addShaders("' + shaders_path + '", { noprocessing: true, noembed: ' + str(noembed).lower() + ' });\n')

# Move assets for published game to /data folder
use_data_dir = is_publish and (state.target == 'krom-windows' or state.target == 'krom-linux' or state.target == 'windows-hl' or state.target == 'linux-hl')
use_data_dir = is_publish and (state.target == 'krom-windows' or state.target == 'krom-linux' or state.target == 'windows-hl' or state.target == 'linux-hl' or state.target == 'html5')
if use_data_dir:
assets.add_khafile_def('arm_data_dir')

Expand Down

0 comments on commit cfa3dfd

Please sign in to comment.