From 0edd93effbc1c0adf7aa9c5647ef69845496f669 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 18 Dec 2018 18:18:00 +0100 Subject: Fix inconsistent/broken Cycles object visibility for instances. Object visibility is now handled by the depsgraph iterator, but this API was incomplete as it made no distinction for visibility of the object itself, particles and generated instances. The depsgraph iterator API now includes information about which part of the object is visible, and this is used by Cycles to replace the old custom logic. Cycles and EEVEE visibility should now be consistent, which unfortunately does means some subtle compatibility breakage for both. Fixes T58956, T58202, T59284. Differential Revision: https://developer.blender.org/D4109 --- source/blender/depsgraph/DEG_depsgraph_query.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/depsgraph/DEG_depsgraph_query.h') diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h index c9fa6b0a035..11a4ebee8c6 100644 --- a/source/blender/depsgraph/DEG_depsgraph_query.h +++ b/source/blender/depsgraph/DEG_depsgraph_query.h @@ -118,7 +118,7 @@ typedef struct DEGObjectIterData { struct Scene *scene; - int visibility_check; /* eObjectVisibilityCheck. */ + eEvaluationMode eval_mode; /* **** Iteration over dupli-list. *** */ -- cgit v1.2.3