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>2014-02-25 09:18:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-25 09:19:57 +0400
commit18f6bb04fa6bec6368a9d3e5253c041ba5c474b3 (patch)
treee57c1af0367a8b900d18dcb74f5cedfca55351e4 /release/scripts/modules/bpy
parent6a43c2ac1ac9a68a1f0b0b2c76a109dfd9337735 (diff)
Fix for custom property editor when property id's contained quotes
Adds bpy.utils.escape_identifier()
Diffstat (limited to 'release/scripts/modules/bpy')
-rw-r--r--release/scripts/modules/bpy/utils.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py
index 6c32f95fc03..ce1efa43b3e 100644
--- a/release/scripts/modules/bpy/utils.py
+++ b/release/scripts/modules/bpy/utils.py
@@ -25,6 +25,7 @@ not associated with blenders internal data.
__all__ = (
"blend_paths",
+ "escape_identifier",
"keyconfig_set",
"load_scripts",
"modules_from_path",
@@ -48,7 +49,13 @@ __all__ = (
"user_resource",
)
-from _bpy import register_class, unregister_class, blend_paths, resource_path
+from _bpy import (
+ escape_identifier,
+ register_class,
+ unregister_class,
+ blend_paths,
+ resource_path,
+ )
from _bpy import script_paths as _bpy_script_paths
from _bpy import user_resource as _user_resource