fix for vec * matrix always returning a 3D vector.

This commit is contained in:
2010-11-12 09:06:50 +00:00
parent d43d5d7690
commit 73a91bc548

View File

@@ -1100,7 +1100,7 @@ static PyObject *Vector_mul(PyObject * v1, PyObject * v2)
return NULL;
}
return newVectorObject(tvec, 3, Py_NEW, NULL);
return newVectorObject(tvec, vec1->size, Py_NEW, NULL);
} else if (QuaternionObject_Check(v2)) {
/* VEC * QUAT */
QuaternionObject *quat2 = (QuaternionObject*)v2;