mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
fix a bug
This commit is contained in:
parent
1649a4e822
commit
a34bc6dafa
@ -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){ \
|
||||
|
Loading…
x
Reference in New Issue
Block a user