Geometry Nodes: add assert to check if node supports lazyness

Only nodes supporting lazyness can mark inputs as unused. For other
nodes, this is done automatically of all outputs are unused.

Differential Revision: https://developer.blender.org/D15409
This commit is contained in:
Iliay Katueshenock
2022-07-28 13:38:12 +02:00
committed by Jacques Lucke
parent d892f96cb1
commit 07e201ec13

View File

@@ -1863,6 +1863,7 @@ bool NodeParamsProvider::lazy_require_input(StringRef identifier)
void NodeParamsProvider::set_input_unused(StringRef identifier)
{
BLI_assert(node_supports_laziness(this->dnode));
const DInputSocket socket = this->dnode.input_by_identifier(identifier);
BLI_assert(socket);