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
268 stars 25 forks source link

Error Migration and Refactoring for 3.6.0 #549

Closed StandingPadAnimations closed 1 month ago

StandingPadAnimations commented 3 months ago

This PR is mainly to migrate errors in MCprep to use the new MCprepError class. At some point, we realized the need for being able to return objects with messages, so we also added an optional msg field to MCprepError.

In this PR, we also perform any general refactoring that may crop up as needed. Most of these are related to error handling, but there are a few that for the sake of getting out of the way I've done, which are:

The following functions have been refactored to use the new error type:

StandingPadAnimations commented 2 months ago

I think I'll wait till #555 is merged before continuing to work on this, since both #555 and this PR have changes in world_tools.py. One #555 is merged, I'll update this branch with minestone-3-6-0 and continue working on this

StandingPadAnimations commented 1 month ago

I think we should merge this into the CommonMCOBJ branch so we can knock out 2 birds with one stone

StandingPadAnimations commented 1 month ago

Alright, merging into the CommonMCOBJ branch