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 09:01:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-12-09 09:04:05 +0300
commit3b5a81936d8955a2de3ab4d3732bc5a7f9baec8a (patch)
tree2a8dfc5754cbad08ee74f5c87a7e3f0369d8dc6e /release/scripts/modules/rna_prop_ui.py
parent9d8aefaa5c5e2c3ed90e2fc1f6a9756f7444aa67 (diff)
Fix custom property UI handling names with quotes and back-slashes
Custom property names wasn't escaping strings, causing exceptions editing custom properties with characters that needed to be escaped.
Diffstat (limited to 'release/scripts/modules/rna_prop_ui.py')
-rw-r--r--release/scripts/modules/rna_prop_ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py
index 8fdd66dff9f..e3158118146 100644
--- a/release/scripts/modules/rna_prop_ui.py
+++ b/release/scripts/modules/rna_prop_ui.py
@@ -49,7 +49,7 @@ def rna_idprop_ui_del(item):
def rna_idprop_quote_path(prop):
- return "[\"%s\"]" % prop.replace("\"", "\\\"")
+ return "[\"%s\"]" % bpy.utils.escape_identifier(prop)
def rna_idprop_ui_prop_update(item, prop):