Fix T78823: Slash in custom property name does not work

This fixes inserting key-frames for any collection names
containing a back-slash too (bones, modifiers, sequence strips etc).
This commit is contained in:
Campbell Barton 2020-12-09 15:56:02 +11:00
parent d1cedf53fa
commit ceba6b2c21
Notes: blender-bot 2023-02-14 19:45:25 +01:00
Referenced by issue #84091, Crash when going to Properties Editor object properties with Custom Property containing nested dictionary [named "asset_data"]
Referenced by issue #78823, Slash in custom property name does not work
1 changed files with 1 additions and 1 deletions

View File

@ -5033,7 +5033,7 @@ static char *rna_path_token(const char **path, char *fixedbuf, int fixedlen, int
/* copy string, taking into account escaped ] */
if (bracket) {
for (p = *path, i = 0, j = 0; i < len; i++, p++) {
if (*p == '\\' && *(p + 1) == quote) {
if (*p == '\\' && ELEM(*(p + 1), quote, '\\')) {
}
else {
buf[j++] = *p;