diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-31 18:10:44 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-31 18:10:44 +0300 |
commit | 4fd7b1f3db345b83f12c60f75a8dd17bd050d40d (patch) | |
tree | 37fc863e7ad514cfb8006b43fc7dd6a2791baba1 /source/blender/nodes | |
parent | 482a42c0f6ee2e64cf74d16630654a6a142a16c9 (diff) |
Geometry Nodes: Rename "Grid" to "Density"
For other "Attribute Name" fields we usually give a more specific name
that relates to what the attribute is actually used for, like "Mask" in
the point separate node. This is a similar situation, and would also
be consistent with the naming planned in D10506.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc b/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc index 54dccb613a1..1c0e7106b19 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc @@ -36,7 +36,7 @@ static bNodeSocketTemplate geo_node_volume_to_mesh_in[] = { {SOCK_GEOMETRY, N_("Geometry")}, - {SOCK_STRING, N_("Grid")}, + {SOCK_STRING, N_("Density")}, {SOCK_FLOAT, N_("Voxel Size"), 0.3f, 0.0f, 0.0f, 0.0f, 0.01f, FLT_MAX}, {SOCK_FLOAT, N_("Voxel Amount"), 64.0f, 0.0f, 0.0f, 0.0f, 0.0f, FLT_MAX}, {SOCK_FLOAT, N_("Threshold"), 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, FLT_MAX}, @@ -64,7 +64,7 @@ static void geo_node_volume_to_mesh_init(bNodeTree *UNUSED(ntree), bNode *node) sizeof(NodeGeometryVolumeToMesh), __func__); data->resolution_mode = VOLUME_TO_MESH_RESOLUTION_MODE_GRID; - bNodeSocket *grid_socket = nodeFindSocket(node, SOCK_IN, "Grid"); + bNodeSocket *grid_socket = nodeFindSocket(node, SOCK_IN, "Density"); bNodeSocketValueString *grid_socket_value = (bNodeSocketValueString *)grid_socket->default_value; STRNCPY(grid_socket_value->value, "density"); @@ -120,7 +120,7 @@ static void create_mesh_from_volume(GeometrySet &geometry_set_in, Main *bmain = DEG_get_bmain(params.depsgraph()); BKE_volume_load(const_cast<Volume *>(volume), bmain); - const std::string grid_name = params.get_input<std::string>("Grid"); + const std::string grid_name = params.get_input<std::string>("Density"); VolumeGrid *volume_grid = BKE_volume_grid_find(volume, grid_name.c_str()); if (volume_grid == nullptr) { return; |