Oeps... Enabled the pixelate node added documentation, removed unneeded

code
This commit is contained in:
2012-10-24 13:43:32 +00:00
parent f746f3ea09
commit a49b1d7b5e
5 changed files with 51 additions and 17 deletions

View File

@@ -34,8 +34,14 @@ void PixelateNode::convertToOperations(ExecutionSystem *graph, CompositorContext
{
InputSocket *inputSocket = this->getInputSocket(0);
OutputSocket *outputSocket = this->getOutputSocket(0);
DataType datatype = inputSocket->getDataType();
if (inputSocket->isConnected()) {
SocketConnection * connection = inputSocket->getConnection();
OutputSocket* otherOutputSocket = connection->getFromSocket();
datatype = otherOutputSocket->getDataType();
}
PixelateOperation *operation = new PixelateOperation(inputSocket->getDataType());
PixelateOperation *operation = new PixelateOperation(datatype);
inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
outputSocket->relinkConnections(operation->getOutputSocket(0));
graph->addOperation(operation);