[Bf-blender-cvs] [ceba6b2c216] master: Fix T78823: Slash in custom property name does not work
Campbell Barton
noreply at git.blender.org
Wed Dec 9 06:06:11 CET 2020
Commit: ceba6b2c2161bda2e56bef7252782e0722579e95
Author: Campbell Barton
Date: Wed Dec 9 15:56:02 2020 +1100
Branches: master
https://developer.blender.org/rBceba6b2c2161bda2e56bef7252782e0722579e95
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).
===================================================================
M source/blender/makesrna/intern/rna_access.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 4991f34c3f6..a7f326bc79e 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -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;
More information about the Bf-blender-cvs
mailing list