diff options
author | Omar Emara <mail@OmarEmara.dev> | 2022-08-31 17:59:54 +0300 |
---|---|---|
committer | Omar Emara <mail@OmarEmara.dev> | 2022-08-31 17:59:54 +0300 |
commit | 2a13ce1e61d8881d445293a132d087eb8c14bdc3 (patch) | |
tree | 4fa9a281e99a7006b5b70d8f3d846953a2a3c5c1 /source/blender/io/alembic/intern/abc_reader_mesh.cc | |
parent | 370b17a8c6b61c81ed98be979ad098c46aedf073 (diff) |
Fix T100700: Compositor crashes when disabled then enabled
The viewport compositor crashes when it is disabled then enabled after
the compositor node tree is edited.
This happens because the compositor engine uses the view_update callback
of the draw engine type to detect changes in the node tree and reset its
state for future evaluation. However, the draw manager only calls the
view_update callback for enabled engines, so the compositor never
receives the needed updates to properly reset its state and then crashes
at draw time.
This patch call the view_update callback for all registered engines
regardless if they are enabled or not, that way, they always receive
the potentially important updated needed to maintain a correct state.
Aside from the compositor engine, this change affects the EEVEE and
Workbench engines because they are the only engines that utilizes this
callback. However, both of them only reset a flag that is checked at
draw time. So the change should have no side effects. For the EEVEE
engine, we just add a null check in case it was not instanced, while
Workbench already have the appropriate null check.
Differential Revision: https://developer.blender.org/D15821
Reviewed By: Clement Foucault
Diffstat (limited to 'source/blender/io/alembic/intern/abc_reader_mesh.cc')
0 files changed, 0 insertions, 0 deletions