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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user