Geometry Nodes: Rename transfer attribute geometry input
Conceptually, this is the geometry that data is taken from, not the target of an operation, so rename it from "Target" to "Source". This was common user feedback and agreed on in a recent sub-module meeting.
This commit is contained in:
parent
6e926e9b56
commit
6a16a9e661
Notes:
blender-bot
2023-02-14 09:48:23 +01:00
Referenced by commit 279a73e429
, Fix: Complete transfer attribute input renaming
|
@ -2544,11 +2544,12 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
|||
}
|
||||
}
|
||||
|
||||
/* Rename socket on "String to Curves"-node. */
|
||||
/* Rename geometry socket on "String to Curves" node and "Transfer Attribute" node. */
|
||||
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");
|
||||
version_node_input_socket_name(ntree, GEO_NODE_TRANSFER_ATTRIBUTE, "Target", "Source");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ NODE_STORAGE_FUNCS(NodeGeometryTransferAttribute)
|
|||
|
||||
static void node_declare(NodeDeclarationBuilder &b)
|
||||
{
|
||||
b.add_input<decl::Geometry>(N_("Target"))
|
||||
b.add_input<decl::Geometry>(N_("Source"))
|
||||
.supported_type({GEO_COMPONENT_TYPE_MESH,
|
||||
GEO_COMPONENT_TYPE_POINT_CLOUD,
|
||||
GEO_COMPONENT_TYPE_CURVE,
|
||||
|
@ -749,7 +749,7 @@ static void output_attribute_field(GeoNodeExecParams ¶ms, GField field)
|
|||
|
||||
static void node_geo_exec(GeoNodeExecParams params)
|
||||
{
|
||||
GeometrySet geometry = params.extract_input<GeometrySet>("Target");
|
||||
GeometrySet geometry = params.extract_input<GeometrySet>("Source");
|
||||
const NodeGeometryTransferAttribute &storage = node_storage(params.node());
|
||||
const GeometryNodeAttributeTransferMode mapping = (GeometryNodeAttributeTransferMode)
|
||||
storage.mode;
|
||||
|
|
Loading…
Reference in New Issue