PyAPI: move deep-copy args check to py_capi_utils
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_utildefines.h"
|
||||
#include "../generic/python_utildefines.h"
|
||||
#include "../generic/py_capi_utils.h"
|
||||
|
||||
#ifndef MATH_STANDALONE
|
||||
# include "BLI_dynstr.h"
|
||||
@@ -312,8 +313,9 @@ static PyObject *Euler_copy(EulerObject *self)
|
||||
}
|
||||
static PyObject *Euler_deepcopy(EulerObject *self, PyObject *args)
|
||||
{
|
||||
if (!mathutils_deepcopy_args_check(args))
|
||||
if (!PyC_CheckArgs_DeepCopy(args)) {
|
||||
return NULL;
|
||||
}
|
||||
return Euler_copy(self);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user