alpha over and opacity nodes are now functional
This commit is contained in:
@@ -57,6 +57,8 @@ void Node::AddParameter(NodeParam *param)
|
||||
|
||||
if (param->type() == NodeParam::kInput) {
|
||||
connect(param, SIGNAL(ValueChanged(rational, rational)), this, SLOT(InputChanged(rational, rational)));
|
||||
connect(param, SIGNAL(EdgeAdded(NodeEdgePtr)), this, SLOT(InputConnectionChanged(NodeEdgePtr)));
|
||||
connect(param, SIGNAL(EdgeRemoved(NodeEdgePtr)), this, SLOT(InputConnectionChanged(NodeEdgePtr)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -360,3 +362,10 @@ void Node::InputChanged(rational start, rational end)
|
||||
{
|
||||
InvalidateCache(start, end, static_cast<NodeInput*>(sender()));
|
||||
}
|
||||
|
||||
void Node::InputConnectionChanged(NodeEdgePtr edge)
|
||||
{
|
||||
Q_UNUSED(edge)
|
||||
|
||||
InvalidateCache(RATIONAL_MIN, RATIONAL_MAX, static_cast<NodeInput*>(sender()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user