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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user