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>2011-01-24 08:15:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-24 08:15:14 +0300
commitc0f161f81148ee664b26f6e8d26c02c63f886356 (patch)
tree2bf3184a2c982c956fc9a7e10b850e941eeae3d2 /source/blender/python
parentdaa09a4a60086017e75c50c6de0b27fa51232e29 (diff)
fix [#25776] Crash when operator's bl_idname has more than one dot
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_rna.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index e75d898d3aa..f789ed922e2 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -1092,19 +1092,7 @@ static int pyrna_py_to_prop(PointerRNA *ptr, PropertyRNA *prop, void *data, PyOb
}
else {
if(data) *((char**)data)= (char *)param; /*XXX, this is suspect but needed for function calls, need to see if theres a better way */
- else {
- if(RNA_property_flag(prop) & PROP_NEVER_CLAMP) {
- int param_size_max= RNA_property_string_maxlength(prop);
- if(param_size > param_size_max) {
- PyErr_Format(PyExc_TypeError, "%.200s %.200s.%.200s only supports a string of length %d, found %d", error_prefix, RNA_struct_identifier(ptr->type), RNA_property_identifier(prop), param_size, param_size_max);
- return -1;
- }
-#ifdef USE_STRING_COERCE
- Py_XDECREF(value_coerce);
-#endif // USE_STRING_COERCE
- }
- RNA_property_string_set(ptr, prop, param);
- }
+ else RNA_property_string_set(ptr, prop, param);
}
#ifdef USE_STRING_COERCE
Py_XDECREF(value_coerce);