Moo-Ack-Productions / MCprep

Blender python addon to increase workflow for creating minecraft renders and animations
https://theduckcow.com/MCprep
GNU General Public License v3.0
287 stars 24 forks source link

build: Fixed issue with BpyError return values #576

Closed StandingPadAnimations closed 6 months ago

StandingPadAnimations commented 6 months ago

This fixes the issue noted in https://github.com/Moo-Ack-Productions/bpy-build/issues/14, which actually isn't a BpyBuild issue, but rather an issue with our translate action.

For translate, we have a translate.py script (what BpyBuild actually works with) and a bunch of subscripts in translate_scripts, which perform individual actions. However, the pre_build function in translate.py didn't return the results of those subscripts. So when build_pot.py returns an error, that error wasn't propogated, so BpyBuild wouldn't know there was an error.

Closes https://github.com/Moo-Ack-Productions/bpy-build/issues/14