converting the generator returned by `sort_bones_by_constraints` to a list seems to fix that but there is probably a more elegant way to solve this.
converting the generator returned by
sort_bones_by_constraintsto a list seems to fix that but there is probably a more elegant way to solve this.