Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-09-24 22:06:41 +0300
committerHans Goudey <h.goudey@me.com>2021-09-24 22:06:41 +0300
commit2dd39683358100a39d7e7774e1051136ec1df7d9 (patch)
treecf7877594df612deb65a3f5307e416203640146c /source/blender/modifiers
parent536f9eb82e07778565b789f7408f3ce81aa6d675 (diff)
Geometry Nodes: Add versioning and legacy warning for random float node
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_nodes_evaluator.cc10
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. */