From c4046e9082f61bfef87173d20c566a065f2602d7 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 15 Dec 2017 09:43:18 +0100 Subject: Move ID recalc flags into dedicated field in ID Currently this is a no-visible-changes change, but the idea is to use this dedicated flag to tell which exact components of ID changed, make it more granular than just OBJECT and OBJECT_DATA. Allow setting this field based on what components new dependency graph flushed on evaluation. --- source/blender/blenkernel/intern/mask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/mask.c') diff --git a/source/blender/blenkernel/intern/mask.c b/source/blender/blenkernel/intern/mask.c index cd697cadc0e..ff4e7f36018 100644 --- a/source/blender/blenkernel/intern/mask.c +++ b/source/blender/blenkernel/intern/mask.c @@ -1463,8 +1463,8 @@ void BKE_mask_update_scene(Main *bmain, Scene *scene) Mask *mask; for (mask = bmain->mask.first; mask; mask = mask->id.next) { - if (mask->id.tag & LIB_TAG_ID_RECALC_ALL) { - bool do_new_frame = (mask->id.tag & LIB_TAG_ID_RECALC_DATA) != 0; + if (mask->id.recalc & ID_RECALC_ALL) { + bool do_new_frame = (mask->id.recalc & ID_RECALC_DATA) != 0; BKE_mask_evaluate_all_masks(bmain, CFRA, do_new_frame); } } -- cgit v1.2.3