Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
Comment Actions
Thanks for making the patch. I'll move my comments here too.
I like the idea of separating the error message from finding an error.
- Use an enum class for the error values. It would be cleaner to add an explicit "None" value to the enum instead of using zero.
- Indeed, TIP_ needs to run at runtime. A function with a switch case instead of the VALID_MESSAGES should be used to retrieve the messages. This also doesn't rely on indices being the same.
| source/blender/blenkernel/intern/curve.cc | ||
|---|---|---|
| 4787–4790 | Unless there's a specific reason to use a 16 bit unsigned integer, the style guide prefers sticking with int. | |
Comment Actions
- NURBSValidationStatus enum added
- Exception added in BKE_nurb_valid_message for pntsv == 1. Now BKE_nurb_valid_message is not equivalent to nurb_check_valid