diff options
Diffstat (limited to 'source/blender/compositor/intern/COM_SocketConnection.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_SocketConnection.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/compositor/intern/COM_SocketConnection.cpp b/source/blender/compositor/intern/COM_SocketConnection.cpp index 6c6c673501a..e3e52005add 100644 --- a/source/blender/compositor/intern/COM_SocketConnection.cpp +++ b/source/blender/compositor/intern/COM_SocketConnection.cpp @@ -29,7 +29,7 @@ SocketConnection::SocketConnection() { this->setIgnoreResizeCheck(false); } -void SocketConnection::setFromSocket(OutputSocket* fromsocket){ +void SocketConnection::setFromSocket(OutputSocket* fromsocket) { if (fromsocket == NULL) { throw "ERROR"; } @@ -49,14 +49,16 @@ InputSocket* SocketConnection::getToSocket() const {return this->toSocket;} NodeBase* SocketConnection::getFromNode() const { if (this->getFromSocket() == NULL) { return NULL; - } else { + } + else { return this->getFromSocket()->getNode(); } } NodeBase* SocketConnection::getToNode() const { if (this->getToSocket() == NULL) { return NULL; - } else { + } + else { return this->getToSocket()->getNode(); } } |