From a5d763a11ee46fff12d53e8cb21b3ab45fa2c64d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 23 Nov 2017 16:03:44 +0100 Subject: Depsgraph: Use depsgraph to handle edit mode selection This is crucial bit since batch cache is stored in the evaluated object, meaning we can't tag it's hatch cache dirty from the notifier system. Not easily at least. Better to leave this job to depsgraph, it knows all the copies of data. --- source/blender/depsgraph/DEG_depsgraph.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/depsgraph/DEG_depsgraph.h') diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h index b224303fb84..f007ceeed9e 100644 --- a/source/blender/depsgraph/DEG_depsgraph.h +++ b/source/blender/depsgraph/DEG_depsgraph.h @@ -165,6 +165,7 @@ enum { * Only parameters of material changed). */ DEG_TAG_SHADING_UPDATE = (1 << 9), + DEG_TAG_SELECT_UPDATE = (1 << 10), }; void DEG_id_tag_update(struct ID *id, int flag); void DEG_id_tag_update_ex(struct Main *bmain, struct ID *id, int flag); -- cgit v1.2.3