Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on recompile #2739

Merged
merged 1 commit into from
Dec 30, 2022
Merged

Fix crash on recompile #2739

merged 1 commit into from
Dec 30, 2022

Conversation

rpaladin
Copy link
Contributor

@rpaladin rpaladin commented Dec 30, 2022

Fixes crash that was first introduced in #2731

Steps to reproduce: Attempting to recompile (with cache) with zero export presets available caused crashing on build export.

Traceback (most recent call last):
  File "D:\Blender\Projects\RP\B3D_33\armsdk/armory\blender\arm\props_ui.py", line 1171, in invoke
    return self.execute(context)
  File "D:\Blender\Projects\RP\B3D_33\armsdk/armory\blender\arm\props_ui.py", line 1190, in execute
    make.play()
  File "D:\Blender\Projects\RP\B3D_33\armsdk/armory\blender\arm\make.py", line 572, in play
    compile(assets_only=(not wrd.arm_recompile))
  File "D:\Blender\Projects\RP\B3D_33\armsdk/armory\blender\arm\make.py", line 387, in compile
    item = wrd.arm_exporterlist[wrd.arm_exporterlist_index]
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0

@luboslenco luboslenco merged commit 93d5019 into armory3d:main Dec 30, 2022
@rpaladin rpaladin deleted the fix-make branch December 30, 2022 03:47
@MoritzBrueckner MoritzBrueckner added the Release Notes: Fixes A pull request that fixes something. Used to generate release notes. label Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release Notes: Fixes A pull request that fixes something. Used to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants