Blender Git Loki
Git Commits -> Revision 46aa70c
Revision 46aa70c by Julian Eisel (master) March 11, 2021, 16:43 (GMT) |
UI: Avoid unnecessary redraws of unrelated editors on space changes When adding a notifier, `reference` data can be passed. The notifier system uses this to filter out listeners, for example if data of a scene changes, windows showing a different scene won't get the notifiers sent to their listeners. For the `NC_SPACE` notifiers, a number of places also passed the space as `reference`, but that wasn't used at all. The notifier would still be sent to all listeners in all windows (and the listeners didn't use it either). Causing some unnecessary updates (e.g. see ed2c4825d3e2344). With this commit, passing a space will make sure the notifier is only sent to that exact space. Some code seems to already have expected that to be the case. However there were some cases that passed the space as `reference` without reason, which would break with this commit (meaning they wouldn't redraw or update correctly). Corrected these so they don't pass the space anymore. |
Commit Details:
Full Hash: 46aa70cb486d719139ac43e5c9ac4b0fe998e202
Parent Commit: ed2c482
Lines Changed: +16, -11
8 Modified Paths:
/source/blender/editors/gpencil/gpencil_edit.c (+1, -2) (Diff)
/source/blender/editors/object/object_relations.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_dragdrop.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_buttons.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_snap.c (+2, -2) (Diff)
/source/blender/editors/transform/transform_ops.c (+2, -3) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+4, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+3, -0) (Diff)
/source/blender/editors/object/object_relations.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_dragdrop.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_buttons.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_snap.c (+2, -2) (Diff)
/source/blender/editors/transform/transform_ops.c (+2, -3) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+4, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+3, -0) (Diff)