Commit: b38f40e90475f3a835e4f99cdc27d3891aad7787 Author: Jacques Lucke Date: Fri Feb 11 12:24:07 2022 +0100 Branches: blender-v3.1-release https://developer.blender.org/rBb38f40e90475f3a835e4f99cdc27d3891aad7787
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 =================================================================== M source/blender/nodes/geometry/nodes/node_geo_realize_instances.cc =================================================================== 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; _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
