From ef72c0361afe6ca12aef9ac3d3d587c4aadb7c3c Mon Sep 17 00:00:00 2001 From: Thiago Ize <> Date: Tue, 19 Dec 2023 16:04:59 -0700 Subject: [PATCH] Remove entries clamp as some users might want more than this and this breaks json output. --- cryptomatte/cryptomatte.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cryptomatte/cryptomatte.h b/cryptomatte/cryptomatte.h index 7ea2163..770af36 100644 --- a/cryptomatte/cryptomatte.h +++ b/cryptomatte/cryptomatte.h @@ -588,12 +588,9 @@ inline bool get_material_name(const AtShaderGlobals* sg, const AtNode* node, con inline void write_manifest_to_string(const ManifestMap& map, String& manf_string) { ManifestMap::const_iterator map_it = map.begin(); const size_t map_entries = map.size(); - const size_t max_entries = 100000; size_t metadata_entries = map_entries; - if (map_entries > max_entries) { - AiMsgWarning("Cryptomatte: %lu entries in manifest, limiting to %lu", // - map_entries, max_entries); - metadata_entries = max_entries; + if (map_entries > 100000) { + AiMsgWarning("Cryptomatte: %lu entries in manifest is very high", map_entries); } manf_string.append("{");