Cleanup: Replace is...Operation() methods with a flag.
This commit is contained in:
@@ -130,7 +130,7 @@ static void update_read_buffer_offset(blender::Vector<NodeOperation *> &operatio
|
||||
{
|
||||
unsigned int order = 0;
|
||||
for (NodeOperation *operation : operations) {
|
||||
if (operation->isReadBufferOperation()) {
|
||||
if (operation->get_flags().is_read_buffer_operation) {
|
||||
ReadBufferOperation *readOperation = (ReadBufferOperation *)operation;
|
||||
readOperation->setOffset(order);
|
||||
order++;
|
||||
@@ -142,7 +142,7 @@ static void init_write_operations_for_execution(blender::Vector<NodeOperation *>
|
||||
const bNodeTree *bTree)
|
||||
{
|
||||
for (NodeOperation *operation : operations) {
|
||||
if (operation->isWriteBufferOperation()) {
|
||||
if (operation->get_flags().is_write_buffer_operation) {
|
||||
operation->setbNodeTree(bTree);
|
||||
operation->initExecution();
|
||||
}
|
||||
@@ -152,7 +152,7 @@ static void init_write_operations_for_execution(blender::Vector<NodeOperation *>
|
||||
static void link_write_buffers(blender::Vector<NodeOperation *> &operations)
|
||||
{
|
||||
for (NodeOperation *operation : operations) {
|
||||
if (operation->isReadBufferOperation()) {
|
||||
if (operation->get_flags().is_read_buffer_operation) {
|
||||
ReadBufferOperation *readOperation = static_cast<ReadBufferOperation *>(operation);
|
||||
readOperation->updateMemoryBuffer();
|
||||
}
|
||||
@@ -163,7 +163,7 @@ static void init_non_write_operations_for_execution(blender::Vector<NodeOperatio
|
||||
const bNodeTree *bTree)
|
||||
{
|
||||
for (NodeOperation *operation : operations) {
|
||||
if (!operation->isWriteBufferOperation()) {
|
||||
if (!operation->get_flags().is_write_buffer_operation) {
|
||||
operation->setbNodeTree(bTree);
|
||||
operation->initExecution();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user