Commit: 88b5d7f5f39265af05f509b1be42277ebbdc3f7d
Author: Jeroen Bakker
Date: Tue Mar 30 14:25:14 2021 +0200
Branches: master
https://developer.blender.org/rB88b5d7f5f39265af05f509b1be42277ebbdc3f7d
Cleanup: remove unneeded method.
size can be accessed via instance attribute.
===================================================================
M source/blender/compositor/intern/COM_NodeOperation.cc
M source/blender/compositor/intern/COM_NodeOperation.h
===================================================================
diff --git a/source/blender/compositor/intern/COM_NodeOperation.cc
b/source/blender/compositor/intern/COM_NodeOperation.cc
index cb2134ae5f1..297ef100a1b 100644
--- a/source/blender/compositor/intern/COM_NodeOperation.cc
+++ b/source/blender/compositor/intern/COM_NodeOperation.cc
@@ -131,7 +131,7 @@ bool NodeOperation::determineDependingAreaOfInterest(rcti
*input,
ReadBufferOperation
*readOperation,
rcti *output)
{
- if (isInputOperation()) {
+ if (m_inputs.size() == 0) {
BLI_rcti_init(output, input->xmin, input->xmax, input->ymin, input->ymax);
return false;
}
diff --git a/source/blender/compositor/intern/COM_NodeOperation.h
b/source/blender/compositor/intern/COM_NodeOperation.h
index 1a299160cee..f300fb092a3 100644
--- a/source/blender/compositor/intern/COM_NodeOperation.h
+++ b/source/blender/compositor/intern/COM_NodeOperation.h
@@ -311,14 +311,6 @@ class NodeOperation {
NodeOperationOutput *getOutputSocket(unsigned int index = 0);
NodeOperationInput *getInputSocket(unsigned int index);
- /** Check if this is an input operation
- * An input operation is an operation that only has output sockets and no
input sockets
- */
- bool isInputOperation() const
- {
- return m_inputs.is_empty();
- }
-
/**
* \brief determine the resolution of this node
* \note this method will not set the resolution, this is the responsibility
of the caller
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs