math: generate alpha channel only if multiplying a texture by a matrix

This commit is contained in:
itsmattkc
2020-06-12 03:44:23 +10:00
parent 6b7925302f
commit 7b9764254d
+3
View File
@@ -319,6 +319,9 @@ NodeValueTable MathNode::Value(NodeValueDatabase &value) const
if (GetOperation() != kOpMultiply
|| number_val.data().value<QMatrix4x4>().isIdentity()) {
operation_is_noop = true;
} else {
// It's likely an alpha channel will result from this operation
job.SetAlphaChannelRequired(true);
}
}