[Bf-blender-cvs] [fd88246d61d] master: Fix error message prefix in `Quaternion.to_euler()`

Sybren A. Stüvel noreply at git.blender.org
Thu Nov 19 11:27:00 CET 2020


Commit: fd88246d61d64cd39d06ff3484e7d68428886c1a
Author: Sybren A. Stüvel
Date:   Thu Nov 19 11:26:54 2020 +0100
Branches: master
https://developer.blender.org/rBfd88246d61d64cd39d06ff3484e7d68428886c1a

Fix error message prefix in `Quaternion.to_euler()`

Fix copy-paste error of error message prefix, so that the Quaternion
function no longer says it's a Matrix function error.

===================================================================

M	source/blender/python/mathutils/mathutils_Quaternion.c

===================================================================

diff --git a/source/blender/python/mathutils/mathutils_Quaternion.c b/source/blender/python/mathutils/mathutils_Quaternion.c
index b0e6b330968..8d2ab614728 100644
--- a/source/blender/python/mathutils/mathutils_Quaternion.c
+++ b/source/blender/python/mathutils/mathutils_Quaternion.c
@@ -95,7 +95,7 @@ static PyObject *Quaternion_to_euler(QuaternionObject *self, PyObject *args)
   }
 
   if (order_str) {
-    order = euler_order_from_string(order_str, "Matrix.to_euler()");
+    order = euler_order_from_string(order_str, "Quaternion.to_euler()");
 
     if (order == -1) {
       return NULL;



More information about the Bf-blender-cvs mailing list