Commit: de356415ae5748477b43e0e067c43889458bb367
Author: Campbell Barton
Date:   Thu Jan 21 11:03:37 2016 +1100
Branches: master
https://developer.blender.org/rBde356415ae5748477b43e0e067c43889458bb367

Correct comments & some explanation from last commit

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

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

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

diff --git a/source/blender/python/mathutils/mathutils_Vector.c 
b/source/blender/python/mathutils/mathutils_Vector.c
index 82365c6..ccfecf6 100644
--- a/source/blender/python/mathutils/mathutils_Vector.c
+++ b/source/blender/python/mathutils/mathutils_Vector.c
@@ -1717,6 +1717,8 @@ static PyObject *Vector_mul(PyObject *v1, PyObject *v2)
        }
 
 
+       /* Intentionally don't support (Quaternion) here, uses reverse order 
instead. */
+
        /* make sure v1 is always the vector */
        if (vec1 && vec2) {
                if (vec1->size != vec2->size) {
@@ -1778,7 +1780,9 @@ static PyObject *Vector_imul(PyObject *v1, PyObject *v2)
        if (BaseMath_ReadCallback_ForWrite(vec) == -1)
                return NULL;
 
-       /* only support vec*=float and vec*=mat
+       /* Intentionally don't support (Quaternion, Matrix) here, uses reverse 
order instead. */
+
+       /* only support 'vec *= float'
         *  vec*=vec result is a float so that wont work */
        if (((scalar = PyFloat_AsDouble(v2)) == -1.0f && PyErr_Occurred()) == 
0) { /* VEC *= FLOAT */
                mul_vn_fl(vec->vec, vec->size, scalar);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to