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:
authorJohnny Matthews <johnny.matthews@gmail.com>2022-01-21 18:01:18 +0300
committerJohnny Matthews <johnny.matthews@gmail.com>2022-01-21 18:01:18 +0300
commit4251455dcd739bb54c4dda8d9fd64460660e5b5f (patch)
treecce58e289e8a6b223b491555d68af134f487fa26
parent87c5423c5e1e7b1907a336ce6b74dfd44bde5526 (diff)
Geometry Nodes: Mesh Island Node - Rename Index Socket
Rename 'Index' Socket to 'Island Index' to make it more consistent with 'Island Count' Differential Revision: https://developer.blender.org/D13893
-rw-r--r--source/blender/blenloader/intern/versioning_300.c2
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_input_mesh_island.cc6
2 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index 78ec2276af7..81fc6086951 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -2551,6 +2551,8 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
ntree, GEO_NODE_STRING_TO_CURVES, "Curves", "Curve Instances");
version_node_output_socket_name(
ntree, GEO_NODE_INPUT_MESH_EDGE_ANGLE, "Angle", "Unsigned Angle");
+ version_node_output_socket_name(
+ ntree, GEO_NODE_INPUT_MESH_ISLAND, "Index", "Island Index");
version_node_input_socket_name(ntree, GEO_NODE_TRANSFER_ATTRIBUTE, "Target", "Source");
}
}
diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_island.cc b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_island.cc
index ba4295017bc..68bb93bbb64 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_island.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_island.cc
@@ -27,7 +27,7 @@ namespace blender::nodes::node_geo_input_mesh_island_cc {
static void node_declare(NodeDeclarationBuilder &b)
{
- b.add_output<decl::Int>(N_("Index"))
+ b.add_output<decl::Int>(N_("Island Index"))
.field_source()
.description(N_("Island indices are based on the order of the lowest-numbered vertex "
"contained in each island"));
@@ -133,9 +133,9 @@ class IslandCountFieldInput final : public GeometryFieldInput {
static void node_geo_exec(GeoNodeExecParams params)
{
- if (params.output_is_required("Index")) {
+ if (params.output_is_required("Island Index")) {
Field<int> field{std::make_shared<IslandFieldInput>()};
- params.set_output("Index", std::move(field));
+ params.set_output("Island Index", std::move(field));
}
if (params.output_is_required("Island Count")) {
Field<int> field{std::make_shared<IslandCountFieldInput>()};