MCPcopy Create free account
hub / github.com/blender/blender / Vector_new

Function Vector_new

source/blender/python/mathutils/mathutils_Vector.cc:190–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190static PyObject *Vector_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
191{
192 if (UNLIKELY(kwds && PyDict_GET_SIZE(kwds))) {
193 PyErr_SetString(PyExc_TypeError,
194 "Vector(): "
195 "takes no keyword args");
196 return nullptr;
197 }
198 PyObject *const *args_array = &PyTuple_GET_ITEM(args, 0);
199 const size_t args_array_num = PyTuple_GET_SIZE(args);
200 return Vector_vectorcall(
201 reinterpret_cast<PyObject *>(type), args_array, args_array_num, nullptr);
202}
203
204/** \} */
205

Callers

nothing calls this directly

Calls 1

Vector_vectorcallFunction · 0.85

Tested by

no test coverage detected