Commit: ceac8559e105d4912318715598ed054d4d4ba6e4 Author: Campbell Barton Date: Wed Dec 9 15:25:18 2020 +1100 Branches: blender-v2.91-release https://developer.blender.org/rBceac8559e105d4912318715598ed054d4d4ba6e4
Revert "Fix T78823: Slash in custom property name does not work" This reverts commit cbae82ba960a0baaae6437b176a310f078ce07d8. This change introduced the following problems: - We could no longer reliably duplicate or use an existing custom property names. - We could no longer assume a bone or ID name can be used in a custom-property. - Importers that support custom properties (such as FBX) could fail with an exception creating custom properties. =================================================================== M source/blender/python/generic/idprop_py_api.c =================================================================== diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index 6f5f36ec42f..314a34e3dec 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -20,8 +20,6 @@ #include <Python.h> -#include <string.h> - #include "MEM_guardedalloc.h" #include "BLI_utildefines.h" @@ -372,11 +370,6 @@ static const char *idp_try_read_name(PyObject *name_obj) "the length of IDProperty names is limited to 63 characters"); return NULL; } - - if (strchr(name, '\"') || strchr(name, '\\') || strchr(name, '\'')) { - PyErr_SetString(PyExc_KeyError, "IDProperty names cannot include \", \\, or \'"); - return NULL; - } } else { name = ""; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs