[Bf-blender-cvs] [1a13940ef80] master: Fix T88617: Wrong annotation cursor in Preview of sequencer editor
Pratik Borhade
noreply at git.blender.org
Sat Feb 4 05:55:36 CET 2023
Commit: 1a13940ef80890e3f73f41061c31ed00b8298640
Author: Pratik Borhade
Date: Sat Feb 4 10:22:50 2023 +0530
Branches: master
https://developer.blender.org/rB1a13940ef80890e3f73f41061c31ed00b8298640
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
===================================================================
M source/blender/windowmanager/intern/wm_cursors.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c
index f7c030db1cd..74e760013fd 100644
--- a/source/blender/windowmanager/intern/wm_cursors.c
+++ b/source/blender/windowmanager/intern/wm_cursors.c
@@ -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;
}
More information about the Bf-blender-cvs
mailing list