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.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user