Fix #146322: Spelling mistake and missing return type for axis_conversion

Fix typo in PyApi doc of `axis_conversion` and add return type

Pull Request: https://projects.blender.org/blender/blender/pulls/146353
This commit is contained in:
Alaska
2025-09-22 15:48:11 +02:00
committed by Pratik Borhade
parent 3dffbb7e35
commit 2f02866519

View File

@@ -298,8 +298,9 @@ _axis_convert_num = {'X': 0, 'Y': 1, 'Z': 2, '-X': 3, '-Y': 4, '-Z': 5}
def axis_conversion(from_forward='Y', from_up='Z', to_forward='Y', to_up='Z'):
"""
Each argument us an axis in ['X', 'Y', 'Z', '-X', '-Y', '-Z']
Each argument is an axis in ['X', 'Y', 'Z', '-X', '-Y', '-Z']
where the first 2 are a source and the second 2 are the target.
:rtype: :class:`mathutils.Matrix`
"""
from mathutils import Matrix
from functools import reduce