Simulation nodes: UI for simulation state items in sidebar #106919
|
@ -326,6 +326,7 @@ bool NOD_geometry_simulation_output_item_socket_type_supported(const eNodeSocket
|
|||
bNode *NOD_geometry_simulation_output_find_node_by_item(bNodeTree *ntree,
|
||||
const NodeSimulationItem *item)
|
||||
|
||||
{
|
||||
ntree->ensure_topology_cache();
|
||||
for (bNode *node : ntree->nodes_by_type("GeometryNodeSimulationOutput")) {
|
||||
NodeGeometrySimulationOutput *sim = static_cast<NodeGeometrySimulationOutput *>(node->storage);
|
||||
if (NOD_geometry_simulation_output_contains_item(sim, item)) {
|
||||
|
|
Loading…
Reference in New Issue
I guess this is slightly different, but usually a method like this is called
items_for_write()
. Either way is fine with me.We already have
NodeSimulationItem *items
for the array, soSpan<NodeSimulationItem> items()
is a conflict, otherwiseitems
+items_for_write
would work.I opted for
items_span_for_write
now, if that's ok for you.