From 5c17dbd991d64257f99b179343b453bb60823d44 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 29 May 2018 15:57:14 +0200 Subject: Fix missing Cycles 3D viewport updates when editing materials, lamps. This introduces a new depsgraph API for getting updated datablocks, rather than getting it from bpy.data. * depsgraph.ids_updated gives a list of all datablocks in the depsgraph which have been updated. * depsgraph.id_type_updated('TYPE') is true if any datablock of the given type has been added, removed or modified. More API updates are coming to properly handle multiple depsgraphs and finer update granularity, but this should make Cycles work again. --- source/blender/blenkernel/BKE_main.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/blender/blenkernel/BKE_main.h') diff --git a/source/blender/blenkernel/BKE_main.h b/source/blender/blenkernel/BKE_main.h index efcff9a9382..0913cf208eb 100644 --- a/source/blender/blenkernel/BKE_main.h +++ b/source/blender/blenkernel/BKE_main.h @@ -128,8 +128,6 @@ typedef struct Main { ListBase cachefiles; ListBase workspaces; - char id_tag_update[MAX_LIBARRAY]; - /* Must be generated, used and freed by same code - never assume this is valid data unless you know * when, who and how it was created. * Used by code doing a lot of remapping etc. at once to speed things up. */ -- cgit v1.2.3