english Sivu saatavilla vain englanninkielisenä.

Blender Git Statistics -> Developers -> puklicki

Konrad Puklicki (puklicki)

Total Commits : 1
Master Commits : 1
Branch Commits : 0
First Commit : May 27, 2020
Latest Commit : May 27, 2020

Commits by Month

DateNumber of Commits
May, 20201

Favourite Files

FilenameTotal Edits
wm_cursors.c1

File Changes

ActionTotalPer Commit
Modified11.0

Code Changes

ActionTotalPer Commit
Lines Added1010.0
Lines Removed66.0

Latest commits Feed

Revision e490dc4 by Konrad Puklicki / Julian Eisel (master)
May 27, 2020, 10:06 (GMT)
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

MiikaHweb - Blender Git Statistics v1.06
Tehnyt: Miika HämäläinenViimeksi p?ivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021