diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-04 14:38:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-04 16:43:12 +0300 |
commit | 7b149bfde649e178ab8710702f1f0157bff2ef7e (patch) | |
tree | ccb77c0a4a8f439e3789f3e2e877a4913190b571 /source/blender/blenkernel/intern/depsgraph.c | |
parent | 5ce95df2c6f2b86d53795b9b24fdd8ba239597f9 (diff) |
Depsgraph: Use atomic operation to tag the changed ID
Diffstat (limited to 'source/blender/blenkernel/intern/depsgraph.c')
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index 678dc92a5f2..302e55a1f5a 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -3053,7 +3053,7 @@ void DAG_id_type_tag(Main *bmain, short idtype) DAG_id_type_tag(bmain, ID_SCE); } - bmain->id_tag_update[BKE_idcode_to_index(idtype)] = 1; + atomic_fetch_and_or_uint8((uint8_t*)&bmain->id_tag_update[BKE_idcode_to_index(idtype)], 1); } int DAG_id_type_tagged(Main *bmain, short idtype) |