From 8da2753f805c17b5596399465a349aa992de9ad0 Mon Sep 17 00:00:00 2001 From: Jonah Friedman Date: Tue, 25 Sep 2018 17:40:42 -0400 Subject: [PATCH] In noop mode filter should write no values (RGBA may be wrong type) --- cryptomatte/cryptomatte_filter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cryptomatte/cryptomatte_filter.cpp b/cryptomatte/cryptomatte_filter.cpp index 463cc43..62b5525 100644 --- a/cryptomatte/cryptomatte_filter.cpp +++ b/cryptomatte/cryptomatte_filter.cpp @@ -142,13 +142,13 @@ void write_to_samples_map(sw_map_t* vals, float hash, float sample_weight) { /////////////////////////////////////////////// filter_pixel { - AtRGBA* out_value = (AtRGBA*)data_out; - *out_value = AI_RGBA_ZERO; - CryptomatteFilterData* data = (CryptomatteFilterData*)AiNodeGetLocalData(node); if (data->noop) return; + AtRGBA* out_value = (AtRGBA*)data_out; + *out_value = AI_RGBA_ZERO; + /////////////////////////////////////////////// // // early out for black pixels