forked from H-uru/korman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make bounds enum properties less verbose.
Every time we need to make a place to store a region's bounds, we have to write quite a bit of boilerplate code to stash the bounds type into the collision modifier. This removes the need to do that by making a helper function that generates those helper functions for us. Generally, we would use `functools.partial` to do this, but Blender requires function objects for the `EnumProperty`'s getter and setter. Partial objects raise a `TypeError`.
- Loading branch information
Showing
4 changed files
with
44 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters