Fix missing custom-property escaping for whole-character keying set

Custom properties with characters that needed escaping
had f-curves created with invalid paths.
This commit is contained in:
Campbell Barton 2020-12-10 19:31:22 +11:00
parent 83f5a0b972
commit 22959dc866
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ class BUILTIN_KSI_WholeCharacter(KeyingSetInfo):
# for now, just add all of 'em
prop_rna = type(bone).bl_rna.properties.get(prop, None)
if prop_rna is None:
prop_path = '["%s"]' % prop
prop_path = '["%s"]' % bpy.utils.escape_identifier(prop)
try:
rna_property = bone.path_resolve(prop_path, False)
except ValueError as ex: