diff options
author | Hans Goudey <h.goudey@me.com> | 2021-09-24 22:06:41 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-24 22:06:41 +0300 |
commit | 2dd39683358100a39d7e7774e1051136ec1df7d9 (patch) | |
tree | cf7877594df612deb65a3f5307e416203640146c /source/blender/modifiers/intern/MOD_nodes_evaluator.cc | |
parent | 536f9eb82e07778565b789f7408f3ce81aa6d675 (diff) |
Geometry Nodes: Add versioning and legacy warning for random float node
Diffstat (limited to 'source/blender/modifiers/intern/MOD_nodes_evaluator.cc')
-rw-r--r-- | source/blender/modifiers/intern/MOD_nodes_evaluator.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes_evaluator.cc b/source/blender/modifiers/intern/MOD_nodes_evaluator.cc index 9f296f4cfe9..fd0205cffc5 100644 --- a/source/blender/modifiers/intern/MOD_nodes_evaluator.cc +++ b/source/blender/modifiers/intern/MOD_nodes_evaluator.cc @@ -887,6 +887,16 @@ class GeometryNodesEvaluator { const MultiFunction &fn, NodeState &node_state) { + if (USER_EXPERIMENTAL_TEST(&U, use_geometry_nodes_fields)) { + if (node->idname().find("Legacy") != StringRef::not_found) { + /* Create geometry nodes params just for creating an error message. */ + NodeParamsProvider params_provider{*this, node, node_state}; + GeoNodeExecParams params{params_provider}; + params.error_message_add(geo_log::NodeWarningType::Legacy, + TIP_("Legacy node will be removed before Blender 4.0")); + } + } + LinearAllocator<> &allocator = local_allocators_.local(); /* Prepare the inputs for the multi function. */ |