mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +00:00
fix a bug of mat3x3.__rmul__
This commit is contained in:
parent
63306f756f
commit
fc8772a240
@ -323,8 +323,8 @@ namespace pkpy{
|
|||||||
return VAR_T(PyMat3x3, self * other);
|
return VAR_T(PyMat3x3, self * other);
|
||||||
});
|
});
|
||||||
vm->bind_method<1>(type, "__rmul__", [](VM* vm, ArgsView args){
|
vm->bind_method<1>(type, "__rmul__", [](VM* vm, ArgsView args){
|
||||||
PyMat3x3& self = _CAST(PyMat3x3&, args[1]);
|
PyMat3x3& self = _CAST(PyMat3x3&, args[0]);
|
||||||
f64 other = CAST_F(args[0]);
|
f64 other = CAST_F(args[1]);
|
||||||
return VAR_T(PyMat3x3, self * other);
|
return VAR_T(PyMat3x3, self * other);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user