mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
This commit bumps the `ios` branch from 5.0.0 alpha to 5.1.2 release. I merged v5.0-release first then v5.1-release. So it was a sequential merge. I'm just waiting to the approval of continuing development. The stuff that are missing (those are so close to implement): - #145484 iOS: Keyboard Input Support: https://projects.blender.org/blender/blender/pulls/145484 - #145702 iOS: Add clipboard Image: https://projects.blender.org/blender/blender/pulls/145702 - Fix QOS threading - Expose Downloads - UIScene Migration `make deps` needs to run two times. (still hacky....) OSL occurs racing conditions. Disclaimer: I used AI for searching in Documentation of Deps. So the implementation is by hand. **SACRED PINKY FINGER PROMISE** Pull Request: https://projects.blender.org/blender/blender/pulls/161073
18 lines
377 B
Python
18 lines
377 B
Python
import mathutils
|
|
from math import radians
|
|
|
|
vec = mathutils.Vector((1.0, 2.0, 3.0))
|
|
|
|
mat_rot = mathutils.Matrix.Rotation(radians(90.0), 4, 'X')
|
|
mat_trans = mathutils.Matrix.Translation(vec)
|
|
|
|
mat = mat_trans @ mat_rot
|
|
mat.invert()
|
|
|
|
mat3 = mat.to_3x3()
|
|
quat1 = mat.to_quaternion()
|
|
quat2 = mat3.to_quaternion()
|
|
|
|
quat_diff = quat1.rotation_difference(quat2)
|
|
|
|
print(quat_diff.angle)
|