[Bf-blender-cvs] [423a931ce5c] temp-geometry-nodes-text: Rename socket "Curves" to "Curve Instances" on String to Curves-node
Erik
noreply at git.blender.org
Fri Oct 29 23:50:32 CEST 2021
Commit: 423a931ce5c92f172fde2f71deeb94f47965b9b7
Author: Erik
Date: Fri Oct 29 00:00:03 2021 +0200
Branches: temp-geometry-nodes-text
https://developer.blender.org/rB423a931ce5c92f172fde2f71deeb94f47965b9b7
Rename socket "Curves" to "Curve Instances" on String to Curves-node
===================================================================
M source/blender/blenloader/intern/versioning_300.c
M source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index 68faa4c0672..826560562c3 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -2154,6 +2154,12 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
* \note Keep this message at the bottom of the function.
*/
{
+ LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) {
+ if (ntree->type == NTREE_GEOMETRY) {
+ version_node_output_socket_name(
+ ntree, GEO_NODE_STRING_TO_CURVES, "Curves", "Curve Instances");
+ }
+ }
/* Keep this block, even when empty. */
}
}
diff --git a/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc b/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc
index 5dd5ca04a6a..a3dc609eb78 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc
@@ -56,7 +56,7 @@ static void geo_node_string_to_curves_declare(NodeDeclarationBuilder &b)
.default_value(0.0f)
.min(0.0f)
.subtype(PROP_DISTANCE);
- b.add_output<decl::Geometry>(N_("Curves"));
+ b.add_output<decl::Geometry>(N_("Curve Instances"));
b.add_output<decl::String>(N_("Remainder"));
b.add_output<decl::Int>(N_("Line")).field_source();
b.add_output<decl::Vector>(N_("Pivot Point")).field_source();
@@ -403,7 +403,7 @@ static void geo_node_string_to_curves_exec(GeoNodeExecParams params)
}
if (layout.positions.size() == 0) {
- params.set_output("Curves", GeometrySet());
+ params.set_output("Curve Instances", GeometrySet());
return;
}
@@ -414,7 +414,7 @@ static void geo_node_string_to_curves_exec(GeoNodeExecParams params)
add_instances_from_handles(instances, char_handles, layout);
create_attributes(params, layout, instances);
- params.set_output("Curves", std::move(geometry_set_out));
+ params.set_output("Curve Instances", std::move(geometry_set_out));
}
} // namespace blender::nodes
More information about the Bf-blender-cvs
mailing list