Geometry Nodes: add error message when simulations are not supported

This mainly results in an error when trying to use the a simulation zone in
a node tool which is not supported yet. It might become supported in the
future though.
This commit is contained in:
Jacques Lucke
2025-05-28 05:52:16 +02:00
parent 39a3b44a72
commit 16cd798f8d

View File

@@ -571,6 +571,14 @@ class LazyFunctionForSimulationOutputNode final : public LazyFunction {
return;
}
if (!user_data.call_data->simulation_params) {
if (geo_eval_log::GeoTreeLogger *tree_logger = local_user_data.try_get_tree_logger(
user_data))
{
tree_logger->node_warnings.append(
*tree_logger->allocator,
{node_.identifier,
{NodeWarningType::Error, TIP_("Simulation zone is not supported")}});
}
this->set_default_outputs(params);
return;
}