Fix another cases where painting long brush strokes with small radius was slowed

down, this time by the operator properties getting converted to a string for
display in the info window.

With 1000+ stroke points this can get slow, and takes up too much space anyway,
so now it's (somewhat arbitrarily) limited to printing only 10 points.
This commit is contained in:
Brecht Van Lommel
2013-05-15 14:37:01 +00:00
parent bea14e8aaa
commit 71775dc2a4
4 changed files with 29 additions and 19 deletions

View File

@@ -5318,7 +5318,7 @@ static PyObject *pyrna_func_doc_get(BPy_FunctionRNA *self, void *UNUSED(closure)
PyObject *ret;
char *args;
args = RNA_function_as_string_keywords(NULL, self->func, NULL, true, true);
args = RNA_function_as_string_keywords(NULL, self->func, NULL, true, true, INT_MAX);
ret = PyUnicode_FromFormat("%.200s.%.200s(%.200s)\n%s",
RNA_struct_identifier(self->ptr.type),