Fix T85549: GPencil draw tool offset when UI scale is not 1
There was a mistake in the variables saved and when resolution of the UI was not 1.0, the viewport was offset.
This commit is contained in:
parent
80793fc740
commit
1ec626f4bd
Notes:
blender-bot
2023-02-14 02:08:37 +01:00
Referenced by issue #85549, GPencil's draw tool has its strokes offset after using fill tool
|
@ -621,8 +621,8 @@ static bool gpencil_render_offscreen(tGPDfill *tgpf)
|
|||
}
|
||||
|
||||
/* set temporary new size */
|
||||
tgpf->bwinx = tgpf->region->sizex;
|
||||
tgpf->bwiny = tgpf->region->sizey;
|
||||
tgpf->bwinx = tgpf->region->winx;
|
||||
tgpf->bwiny = tgpf->region->winy;
|
||||
tgpf->brect = tgpf->region->winrct;
|
||||
|
||||
/* resize region */
|
||||
|
|
Loading…
Reference in New Issue