blender/source
Konrad Puklicki e490dc4346 UI: Skip unnecessary cursor setting
Currently, in sculpting, weight paint and vertex paint modes every cursor
movement triggers redraw of a brush. During that redraw, native cursor is set.
Under the hood, setting the cursor causes freeing of previous cursor and
allocating a new one. In most cases, in previously mentioned modes, recreating
cursor is unnecessary since cursor stays the same.

This patch adds a check which skips cursor change if requested cursor is
already set. The check could be added in pain_cursor.c, but I felt adding it
inside WM_cursor_set function would hopefully skip more unnecessary cursor
reallocations.

Differential Revision: https://developer.blender.org/D7828

Reviewed by: Julian Eisel
2020-05-27 12:06:35 +02:00
..
blender UI: Skip unnecessary cursor setting 2020-05-27 12:06:35 +02:00
creator Cleanup: make guarded memory allocation always thread safe 2020-05-20 01:03:05 +02:00
tools@8a36c2833d Reset submodule to the right place in master 2020-04-22 20:20:48 +02:00
CMakeLists.txt