Sequencer: skip text-effect rendering w/ no alpha

This commit is contained in:
Campbell Barton
2016-04-27 15:55:50 +10:00
parent 0912bffb84
commit 7f0cf3ab38

View File

@@ -3103,7 +3103,9 @@ static int num_inputs_text(void)
static int early_out_text(Sequence *seq, float UNUSED(facf0), float UNUSED(facf1))
{
TextVars *data = seq->effectdata;
if (data->text[0] == 0 || data->text_size < 1) {
if (data->text[0] == 0 || data->text_size < 1 ||
((data->color[3] == 0.0f) && (data->shadow_color[3] == 0.0f || (data->flag & SEQ_TEXT_SHADOW) == 0)))
{
return EARLY_USE_INPUT_1;
}
return EARLY_NO_INPUT;