Cleanup: use _ separator for variable names including dummy
Names such as `dummyult` and `dummyet` didn't read very well, underscore separate these names. Also rename some variables that used old conventions which missed being updated (`mpr` for manipulator instead of `gz` for gizmo).
This commit is contained in:
@@ -8093,7 +8093,7 @@ static int rna_function_arg_count(FunctionRNA *func, int *min_count)
|
||||
return count;
|
||||
}
|
||||
|
||||
static int bpy_class_validate_recursive(PointerRNA *dummyptr,
|
||||
static int bpy_class_validate_recursive(PointerRNA *dummy_ptr,
|
||||
StructRNA *srna,
|
||||
void *py_data,
|
||||
int *have_function)
|
||||
@@ -8109,7 +8109,7 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr,
|
||||
const char *py_class_name = ((PyTypeObject *)py_class)->tp_name; /* __name__ */
|
||||
|
||||
if (srna_base) {
|
||||
if (bpy_class_validate_recursive(dummyptr, srna_base, py_data, have_function) != 0) {
|
||||
if (bpy_class_validate_recursive(dummy_ptr, srna_base, py_data, have_function) != 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -8256,7 +8256,7 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr,
|
||||
{ \
|
||||
if ((item = PyObject_GetAttr(py_class, py_attr))) { \
|
||||
if (item != Py_None) { \
|
||||
if (pyrna_py_to_prop(dummyptr, prop, NULL, item, "validating class:") != 0) { \
|
||||
if (pyrna_py_to_prop(dummy_ptr, prop, NULL, item, "validating class:") != 0) { \
|
||||
Py_DECREF(item); \
|
||||
return -1; \
|
||||
} \
|
||||
@@ -8287,7 +8287,7 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr,
|
||||
PyErr_Clear();
|
||||
}
|
||||
else {
|
||||
if (pyrna_py_to_prop(dummyptr, prop, NULL, item, "validating class:") != 0) {
|
||||
if (pyrna_py_to_prop(dummy_ptr, prop, NULL, item, "validating class:") != 0) {
|
||||
Py_DECREF(item);
|
||||
return -1;
|
||||
}
|
||||
@@ -8298,9 +8298,9 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bpy_class_validate(PointerRNA *dummyptr, void *py_data, int *have_function)
|
||||
static int bpy_class_validate(PointerRNA *dummy_ptr, void *py_data, int *have_function)
|
||||
{
|
||||
return bpy_class_validate_recursive(dummyptr, dummyptr->type, py_data, have_function);
|
||||
return bpy_class_validate_recursive(dummy_ptr, dummy_ptr->type, py_data, have_function);
|
||||
}
|
||||
|
||||
/* TODO: multiple return values like with RNA functions. */
|
||||
|
||||
Reference in New Issue
Block a user