From a34bc6dafa7b48918c5395bfa946c2c7b426fdd2 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 12 May 2023 21:37:08 +0800 Subject: [PATCH] fix a bug --- src/linalg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linalg.h b/src/linalg.h index c43cc298..a55d110c 100644 --- a/src/linalg.h +++ b/src/linalg.h @@ -326,7 +326,7 @@ PyObject* py_var(VM*, const PyMat3x3&); }); #define BIND_VEC_FIELD(D, name) \ - type->attr().set("x", vm->property([](VM* vm, ArgsView args){ \ + type->attr().set(#name, vm->property([](VM* vm, ArgsView args){ \ PyVec##D& self = _CAST(PyVec##D&, args[0]); \ return VAR(self.name); \ }, [](VM* vm, ArgsView args){ \