[Bf-blender-cvs] [edcce2c073f] master: Cleanup: correct inverted variable name
Jacques Lucke
noreply at git.blender.org
Wed Nov 16 13:19:45 CET 2022
Commit: edcce2c073f999a4ad5cc3da6bacdda570d9f464
Author: Jacques Lucke
Date: Wed Nov 16 13:19:06 2022 +0100
Branches: master
https://developer.blender.org/rBedcce2c073f999a4ad5cc3da6bacdda570d9f464
Cleanup: correct inverted variable name
===================================================================
M source/blender/functions/intern/lazy_function_graph_executor.cc
===================================================================
diff --git a/source/blender/functions/intern/lazy_function_graph_executor.cc b/source/blender/functions/intern/lazy_function_graph_executor.cc
index 4c5c3fa47a2..60fb529558c 100644
--- a/source/blender/functions/intern/lazy_function_graph_executor.cc
+++ b/source/blender/functions/intern/lazy_function_graph_executor.cc
@@ -153,7 +153,7 @@ struct NodeState {
/**
* Set to true once the node is done running for the first time.
*/
- bool had_initialization = true;
+ bool had_initialization = false;
/**
* Nodes with side effects should always be executed when their required inputs have been
* computed.
@@ -638,7 +638,7 @@ class Executor {
return;
}
- if (node_state.had_initialization) {
+ if (!node_state.had_initialization) {
/* Initialize storage. */
node_state.storage = fn.init_storage(allocator);
@@ -670,7 +670,7 @@ class Executor {
}
}
- node_state.had_initialization = false;
+ node_state.had_initialization = true;
}
for (const int input_index : node_state.inputs.index_range()) {
More information about the Bf-blender-cvs
mailing list