From fc8772a240972be4d189d067d61363cf99f25fce Mon Sep 17 00:00:00 2001 From: BLUELOVETH Date: Thu, 3 Aug 2023 16:17:32 +0800 Subject: [PATCH] fix a bug of `mat3x3.__rmul__` --- src/linalg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linalg.cpp b/src/linalg.cpp index 855a0a72..272c222e 100644 --- a/src/linalg.cpp +++ b/src/linalg.cpp @@ -323,8 +323,8 @@ namespace pkpy{ return VAR_T(PyMat3x3, self * other); }); vm->bind_method<1>(type, "__rmul__", [](VM* vm, ArgsView args){ - PyMat3x3& self = _CAST(PyMat3x3&, args[1]); - f64 other = CAST_F(args[0]); + PyMat3x3& self = _CAST(PyMat3x3&, args[0]); + f64 other = CAST_F(args[1]); return VAR_T(PyMat3x3, self * other); });