Skip to content

Commit

Permalink
Merge pull request #2931 from 1k8/main
Browse files Browse the repository at this point in the history
Allow building with ZUI disabled
  • Loading branch information
luboslenco authored Sep 25, 2023
2 parents 8d52a68 + 1bbae96 commit ea30c72
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions blender/arm/write_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,11 @@ class Main {
f.write("""
armory.system.Starter.numAssets = """ + str(len(asset_references)) + """;
armory.system.Starter.drawLoading = """ + loadscreen_class + """.render;""")
if wrd.arm_canvas_img_scaling_quality == 'low':
f.write(f"armory.ui.Canvas.imageScaleQuality = kha.graphics2.ImageScaleQuality.Low;")
elif wrd.arm_canvas_img_scaling_quality == 'high':
f.write(f"armory.ui.Canvas.imageScaleQuality = kha.graphics2.ImageScaleQuality.High;")
if wrd.arm_ui == 'Enabled':
if wrd.arm_canvas_img_scaling_quality == 'low':
f.write(f"armory.ui.Canvas.imageScaleQuality = kha.graphics2.ImageScaleQuality.Low;")
elif wrd.arm_canvas_img_scaling_quality == 'high':
f.write(f"armory.ui.Canvas.imageScaleQuality = kha.graphics2.ImageScaleQuality.High;")
f.write("""
armory.system.Starter.main(
'""" + arm.utils.safestr(scene_name) + scene_ext + """',
Expand Down

0 comments on commit ea30c72

Please sign in to comment.