fix a bug

This commit is contained in:
blueloveTH 2023-05-12 21:37:08 +08:00
parent 1649a4e822
commit a34bc6dafa

View File

@ -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){ \