Skip to content

Commit

Permalink
In noop mode filter should write no values (RGBA may be wrong type)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahf committed Sep 25, 2018
1 parent 0fbccf4 commit 8da2753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cryptomatte/cryptomatte_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8da2753

Please sign in to comment.