Cleanup: update username in code-comments: campbellbarton -> ideasman42
Gitea migration changed my username, update code-comments.
This commit is contained in:
@@ -346,7 +346,7 @@ static const bool secure_opcodes[255] = {
|
||||
OK_OP(RESUME),
|
||||
OK_OP(LIST_EXTEND),
|
||||
OK_OP(SET_UPDATE),
|
||||
/* NOTE(@campbellbarton): Don't enable dict manipulation, unless we can prove there is not way it
|
||||
/* NOTE(@ideasman42): Don't enable dict manipulation, unless we can prove there is not way it
|
||||
* can be used to manipulate the name-space (potentially allowing malicious code). */
|
||||
# if 0
|
||||
OK_OP(DICT_MERGE),
|
||||
@@ -430,7 +430,7 @@ static const bool secure_opcodes[255] = {
|
||||
OK_OP(STORE_DEREF),
|
||||
OK_OP(LIST_EXTEND),
|
||||
OK_OP(SET_UPDATE),
|
||||
/* NOTE(@campbellbarton): Don't enable dict manipulation, unless we can prove there is not way it
|
||||
/* NOTE(@ideasman42): Don't enable dict manipulation, unless we can prove there is not way it
|
||||
* can be used to manipulate the name-space (potentially allowing malicious code). */
|
||||
# if 0
|
||||
OK_OP(DICT_MERGE),
|
||||
|
||||
@@ -374,7 +374,7 @@ void BPY_python_start(bContext *C, int argc, const char **argv)
|
||||
/* Allow the user site directory because this is used
|
||||
* when PIP installing packages from Blender, see: T104000.
|
||||
*
|
||||
* NOTE(@campbellbarton): While an argument can be made for isolating Blender's Python
|
||||
* NOTE(@ideasman42): While an argument can be made for isolating Blender's Python
|
||||
* from the users home directory entirely, an alternative directory should be used in that
|
||||
* case - so PIP can be used to install packages. Otherwise PIP will install packages to a
|
||||
* directory which us not in the users `sys.path`, see `site.USER_BASE` for details. */
|
||||
|
||||
@@ -32,7 +32,7 @@ static PyObject *func_bpy_atregister = NULL; /* borrowed reference, `atexit` hol
|
||||
|
||||
static void atexit_func_call(const char *func_name, PyObject *atexit_func_arg)
|
||||
{
|
||||
/* NOTE(@campbellbarton): no error checking, if any of these fail we'll get a crash
|
||||
/* NOTE(@ideasman42): no error checking, if any of these fail we'll get a crash
|
||||
* this is intended, but if its problematic it could be changed. */
|
||||
|
||||
PyObject *atexit_mod = PyImport_ImportModuleLevel("atexit", NULL, NULL, NULL, 0);
|
||||
|
||||
@@ -780,7 +780,7 @@ PyObject *pyrna_math_object_from_array(PointerRNA *ptr, PropertyRNA *prop)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* NOTE(@campbellbarton): Regarding comparison `__cmp__`:
|
||||
/* NOTE(@ideasman42): Regarding comparison `__cmp__`:
|
||||
* checking the 'ptr->data' matches works in almost all cases,
|
||||
* however there are a few RNA properties that are fake sub-structs and
|
||||
* share the pointer with the parent, in those cases this happens 'a.b == a'
|
||||
@@ -8152,7 +8152,7 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr,
|
||||
continue;
|
||||
}
|
||||
|
||||
/* TODO(@campbellbarton): this is used for classmethod's too,
|
||||
/* TODO(@ideasman42): this is used for classmethod's too,
|
||||
* even though class methods should have 'FUNC_USE_SELF_TYPE' set, see Operator.poll for eg.
|
||||
* Keep this as-is since it's working, but we should be using
|
||||
* 'FUNC_USE_SELF_TYPE' for many functions. */
|
||||
@@ -8243,7 +8243,7 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr,
|
||||
continue;
|
||||
}
|
||||
|
||||
/* TODO(@campbellbarton): Use Python3.7x _PyObject_LookupAttr(), also in the macro below. */
|
||||
/* TODO(@ideasman42): Use Python3.7x _PyObject_LookupAttr(), also in the macro below. */
|
||||
identifier = RNA_property_identifier(prop);
|
||||
item = PyObject_GetAttrString(py_class, identifier);
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ finally:
|
||||
bool python_script_error_jump(
|
||||
const char *filepath, int *r_lineno, int *r_offset, int *r_lineno_end, int *r_offset_end)
|
||||
{
|
||||
/* WARNING(@campbellbarton): The normalized exception is restored (losing line number info).
|
||||
/* WARNING(@ideasman42): The normalized exception is restored (losing line number info).
|
||||
* Ideally this would leave the exception state as it found it, but that needs to be done
|
||||
* carefully with regards to reference counting, see: T97731. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user