From f986ab46fd02c0d24846c91d7497f46ae89edd1e Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Thu, 3 Feb 2022 18:16:22 +0100 Subject: [PATCH] Base: fix bug in matrix multiplication (Python API) --- src/Base/MatrixPyImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Base/MatrixPyImp.cpp b/src/Base/MatrixPyImp.cpp index 4f9dc2a3eb..a1fc338fa1 100644 --- a/src/Base/MatrixPyImp.cpp +++ b/src/Base/MatrixPyImp.cpp @@ -185,7 +185,7 @@ PyObject* MatrixPy::number_multiply_handler(PyObject *self, PyObject *other) } if (PyNumber_Check(other)) { - double v = PyFloat_AsDouble(self); + double v = PyFloat_AsDouble(other); a.scale(v,v,v); return new MatrixPy(a); }