Fix T88617: Wrong annotation cursor in Preview of sequencer editor
Allow preview region to change cursor as per the selected tool Reviewed by: campbellbarton, ISS Differential Revision: https://developer.blender.org/D16878
This commit is contained in:
parent
62fc001979
commit
1a13940ef8
Notes:
blender-bot
2023-02-14 10:11:54 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #88617, GP/Annotation UI: Wrong icon and behaviour in the wrong regions
|
@ -173,7 +173,7 @@ void WM_cursor_set(wmWindow *win, int curs)
|
|||
|
||||
bool WM_cursor_set_from_tool(struct wmWindow *win, const ScrArea *area, const ARegion *region)
|
||||
{
|
||||
if (region && (region->regiontype != RGN_TYPE_WINDOW)) {
|
||||
if (region && !ELEM(region->regiontype, RGN_TYPE_WINDOW, RGN_TYPE_PREVIEW)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue