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:
authorJacques Lucke <jacques@blender.org>2022-02-11 14:24:07 +0300
committerJacques Lucke <jacques@blender.org>2022-02-11 14:24:07 +0300
commitb38f40e90475f3a835e4f99cdc27d3891aad7787 (patch)
tree6aaeab14585c6d7ec709f81f9536572f7b2b8bbf /source/blender
parent0263c8238bda6859032fe8d495d41f30bd9b4166 (diff)
Geometry Nodes: show indicator when realize instances node is in legacy mode
For the majority of node groups created in Blender 3.0 the behavior does not change. So far we only found a single file where this setting has an effect. Differential Revision: https://developer.blender.org/D14078
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_realize_instances.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_realize_instances.cc b/source/blender/nodes/geometry/nodes/node_geo_realize_instances.cc
index 48b88705ed2..c92d7f3f20f 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_realize_instances.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_realize_instances.cc
@@ -38,6 +38,15 @@ static void node_geo_exec(GeoNodeExecParams params)
{
const bool legacy_behavior = params.node().custom1 & GEO_NODE_REALIZE_INSTANCES_LEGACY_BEHAVIOR;
+ if (legacy_behavior) {
+ params.error_message_add(
+ NodeWarningType::Info,
+ TIP_("This node uses legacy behavior with regards to attributes on "
+ "instances. The behavior can be changed in the node properties in "
+ "the side bar. In most cases the new behavior is the same for files created in "
+ "Blender 3.0"));
+ }
+
GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry");
geometry::RealizeInstancesOptions options;
options.keep_original_ids = legacy_behavior;