Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-12-09 07:56:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-12-09 08:04:21 +0300
commitceba6b2c2161bda2e56bef7252782e0722579e95 (patch)
tree59f040859b9a4d763253017d10be09ed358777d1 /source/blender/makesrna/intern/rna_access.c
parentd1cedf53faaf11de74ca7c88da207e16ae01c497 (diff)
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).
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c2
1 files changed, 1 insertions, 1 deletions
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;