Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/python_api/examples/mathutils.py')
-rw-r--r--doc/python_api/examples/mathutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/examples/mathutils.py b/doc/python_api/examples/mathutils.py
index dcc10c5885c..b65e61a1044 100644
--- a/doc/python_api/examples/mathutils.py
+++ b/doc/python_api/examples/mathutils.py
@@ -13,6 +13,6 @@ mat3 = mat.to_3x3()
quat1 = mat.to_quaternion()
quat2 = mat3.to_quaternion()
-angle = quat1.difference(quat2)
+quat_diff = quat1.rotation_difference(quat2)
-print(angle)
+print(quat_diff.angle)