void EffectChain::find_all_nonlinear_inputs(Node *node, std::vector<Node *> *nonlinear_inputs)
{
- if (node->output_gamma_curve == GAMMA_LINEAR) {
+ if (node->output_gamma_curve == GAMMA_LINEAR &&
+ node->effect->effect_type_id() != "GammaCompressionEffect") {
return;
}
if (node->effect->num_inputs() == 0) {
// See if all inputs can give us linear gamma. If not, leave it.
std::vector<Node *> nonlinear_inputs;
find_all_nonlinear_inputs(node, &nonlinear_inputs);
+ assert(!nonlinear_inputs.empty());
bool all_ok = true;
for (unsigned i = 0; i < nonlinear_inputs.size(); ++i) {