Cleanup
This commit is contained in:
@@ -1318,10 +1318,10 @@ static PyObject *pyrna_enum_to_py(PointerRNA *ptr, PropertyRNA *prop, int val)
|
||||
#if 0 /* gives python decoding errors while generating docs :( */
|
||||
char error_str[256];
|
||||
BLI_snprintf(error_str, sizeof(error_str),
|
||||
"RNA Warning: Current value \"%d\" "
|
||||
"matches no enum in '%s', '%s', '%s'",
|
||||
val, RNA_struct_identifier(ptr->type),
|
||||
ptr_name, RNA_property_identifier(prop));
|
||||
"RNA Warning: Current value \"%d\" "
|
||||
"matches no enum in '%s', '%s', '%s'",
|
||||
val, RNA_struct_identifier(ptr->type),
|
||||
ptr_name, RNA_property_identifier(prop));
|
||||
|
||||
PyErr_Warn(PyExc_RuntimeWarning, error_str);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user