Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2012-10-29 18:04:51 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2012-10-29 18:04:51 +0400
commit36127e1255396776fab9d9abdf9bc5f8ba14c81a (patch)
treeaa3a7a7f82fa551c53c0d9a06da2c57d1c58437a /source/blender/compositor/intern/COM_OutputSocket.h
parent279de03fc52cc5859356d60be7f9330c4618e8d7 (diff)
Added compositor graph functions for removing socket connections explicitly in convertToOperations. The InputSocket->unlink function should only be used in combination with relinkConnectionsDuplicate, in which case the original node connection will still exist. This would trigger an assert failure, so the original connection should be removed. Only node using this atm is the channel separation node, but will be needed for future group nodes too.
Diffstat (limited to 'source/blender/compositor/intern/COM_OutputSocket.h')
-rw-r--r--source/blender/compositor/intern/COM_OutputSocket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/compositor/intern/COM_OutputSocket.h b/source/blender/compositor/intern/COM_OutputSocket.h
index 63f24451b84..709005a6de0 100644
--- a/source/blender/compositor/intern/COM_OutputSocket.h
+++ b/source/blender/compositor/intern/COM_OutputSocket.h
@@ -50,6 +50,7 @@ public:
OutputSocket(DataType datatype, int inputSocketDataTypeDeterminatorIndex);
OutputSocket(OutputSocket *from);
void addConnection(SocketConnection *connection);
+ void removeConnection(SocketConnection *connection);
SocketConnection *getConnection(unsigned int index) { return this->m_connections[index]; }
const int isConnected() const;
int isOutputSocket() const;