[Bf-blender-cvs] [7b149bfde64] master: Depsgraph: Use atomic operation to tag the changed ID

Sergey Sharybin noreply at git.blender.org
Tue Apr 4 15:43:22 CEST 2017


Commit: 7b149bfde649e178ab8710702f1f0157bff2ef7e
Author: Sergey Sharybin
Date:   Tue Apr 4 13:38:43 2017 +0200
Branches: master
https://developer.blender.org/rB7b149bfde649e178ab8710702f1f0157bff2ef7e

Depsgraph: Use atomic operation to tag the changed ID

===================================================================

M	source/blender/blenkernel/intern/depsgraph.c

===================================================================

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)




More information about the Bf-blender-cvs mailing list