From 27f2ff6b5b6568d0fa98d241b142c47414152bf8 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 17 Aug 2022 13:02:27 -0400 Subject: Cleanup: Remove redundant use of evaluated non-mesh objects Metaball, curve, text, and surface objects use the geometry component system to add evaluated mesh object instances to the dependency graph "for render engine" iterator. Therefore it is unnecessary to process those object types in these loops-- it would either be redundant work or a no-op. --- source/blender/draw/engines/eevee_next/eevee_instance.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/blender/draw/engines/eevee_next') diff --git a/source/blender/draw/engines/eevee_next/eevee_instance.cc b/source/blender/draw/engines/eevee_next/eevee_instance.cc index eb32ebe9555..d28eb55c3b1 100644 --- a/source/blender/draw/engines/eevee_next/eevee_instance.cc +++ b/source/blender/draw/engines/eevee_next/eevee_instance.cc @@ -142,12 +142,8 @@ void Instance::object_sync(Object *ob) lights.sync_light(ob, ob_handle); break; case OB_MESH: - case OB_CURVES_LEGACY: - case OB_SURF: - case OB_FONT: { sync.sync_mesh(ob, ob_handle); break; - } case OB_VOLUME: break; case OB_CURVES: -- cgit v1.2.3