Skip to content

Commit

Permalink
Move assets for published html5 games to /data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
moisesjpelaez committed May 9, 2024
1 parent 1b27bf2 commit 0286df5
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 0286df5

Please sign in to comment.