Baking and storing simulation state within loops or closures is not supported. Previously, attempting to use the bake node or simulation zone in such a zone would just silently fail. Now there is an error on the node and the bake settings are grayed out. Pull Request: https://projects.blender.org/blender/blender/pulls/140041
21 lines
494 B
C++
21 lines
494 B
C++
/* SPDX-FileCopyrightText: 2025 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
namespace blender::nodes {
|
|
|
|
/**
|
|
* Utility struct to store information about a nested node id. Also see #bNestedNodeRef.
|
|
* Sometimes these IDs can only be used when they are at the top level and not within zones.
|
|
*/
|
|
struct FoundNestedNodeID {
|
|
int id;
|
|
bool is_in_simulation = false;
|
|
bool is_in_loop = false;
|
|
bool is_in_closure = false;
|
|
};
|
|
|
|
} // namespace blender::nodes
|