diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-08-02 12:10:40 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-08-02 12:50:54 +0300 |
commit | bb7747e7caee59a8c98cd7d9abc9cd1e9b0e0762 (patch) | |
tree | 5407ca9a13780393df50538fc43867890b855e78 /source/blender/editors/space_graph | |
parent | 1c90ab7bf252ba008e0f61f37886ab58c75f5c7b (diff) |
Fix undefined behavior in dependency graph tagging
The tagging code was iterating over bits set in the ID_RECALC_ALL and
was casting the flag to IDRecalcFlag. This was triggering an undefined
behavior warning in Clang since the bit might not have a corresponding
value in the enumerator.
The solution is to pre-define all reacalc flags for all bits. While
this seems a bit annoying this seems to be the least fragile solution
from all suggested ones.
Differential Revision: https://developer.blender.org/D15602
Diffstat (limited to 'source/blender/editors/space_graph')
0 files changed, 0 insertions, 0 deletions