Closed ScanMountGoat closed 3 years ago
The current implementation loops infinitely on bone chains that form a cycle, including self referential bones. There isn't a reasonable value to return in either case, so it makes sense to just return a meaningful error.
enum BoneTransformError { CycleDetected(start_index, end_index), SelfReferentialBone(index) }
The current implementation loops infinitely on bone chains that form a cycle, including self referential bones. There isn't a reasonable value to return in either case, so it makes sense to just return a meaningful error.