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:
authorBastien Montagne <montagne29@wanadoo.fr>2013-02-08 19:16:57 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-02-08 19:16:57 +0400
commit95b28a65f366c4a1f571f35dabd79edaa94cfe51 (patch)
tree5645d8dce3c7ab252844ba87c0d61dacb1205758 /source/blender/python
parente6cd9ea087d7bc5e027d67fc328014b604fbe25d (diff)
Cleanup: happily remove no-more-used PY_TRANSLATE RNA prop flag, and related code (just realized that flag value was wrong, probably own typo in a previous commit :/ ).
That "trick" was nice when introduced, but it became kind of a pita since we added translation contexts...
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_rna.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index 78d6be6b539..19ec35ae357 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -1624,10 +1624,6 @@ static int pyrna_py_to_prop(PointerRNA *ptr, PropertyRNA *prop, void *data, PyOb
}
else {
/* Unicode String */
-#ifdef WITH_INTERNATIONAL
- bool do_translate = RNA_property_flag(prop) & PROP_STRING_PY_TRANSLATE;
-#endif /* WITH_INTERNATIONAL */
-
#ifdef USE_STRING_COERCE
PyObject *value_coerce = NULL;
if (ELEM3(subtype, PROP_FILEPATH, PROP_DIRPATH, PROP_FILENAME)) {
@@ -1641,13 +1637,6 @@ static int pyrna_py_to_prop(PointerRNA *ptr, PropertyRNA *prop, void *data, PyOb
param = _PyUnicode_AsString(value);
#endif /* USE_STRING_COERCE */
- /* Any half-brained compiler should be able to optimize this out when WITH_INTERNATIONAL is off */
-#ifdef WITH_INTERNATIONAL
- if (do_translate) {
- param = IFACE_(param);
- }
-#endif
-
if (param == NULL) {
if (PyUnicode_Check(value)) {
/* there was an error assigning a string type,