Rename 'Resample Points' to 'Sample Points'

This commit is contained in:
Keavon Chambers
2024-01-05 05:24:16 -08:00
parent 6bfb2bf344
commit b3e4caec1a
4 changed files with 9 additions and 9 deletions

View File

@@ -2654,9 +2654,9 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
..Default::default()
},
DocumentNodeDefinition {
name: "Resample Points",
name: "Sample Points",
category: "Vector",
implementation: NodeImplementation::proto("graphene_core::vector::ResamplePoints<_, _, _, _>"),
implementation: NodeImplementation::proto("graphene_core::vector::SamplePoints<_, _, _, _>"),
inputs: vec![
DocumentInputType::value("Vector Data", TaggedValue::VectorData(graphene_core::vector::VectorData::empty()), true),
DocumentInputType::value("Spacing", TaggedValue::F32(100.), false),
@@ -2665,7 +2665,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
DocumentInputType::value("Adaptive Spacing", TaggedValue::Bool(false), false),
],
outputs: vec![DocumentOutputType::new("Vector", FrontendGraphDataType::Subpath)],
properties: node_properties::resample_points_properties,
properties: node_properties::sample_points_properties,
..Default::default()
},
DocumentNodeDefinition {

View File

@@ -2042,7 +2042,7 @@ pub fn copy_to_points_properties(document_node: &DocumentNode, node_id: NodeId,
vec![LayoutGroup::Row { widgets: instance }]
}
pub fn resample_points_properties(document_node: &DocumentNode, node_id: NodeId, _context: &mut NodePropertiesContext) -> Vec<LayoutGroup> {
pub fn sample_points_properties(document_node: &DocumentNode, node_id: NodeId, _context: &mut NodePropertiesContext) -> Vec<LayoutGroup> {
let spacing = number_widget(document_node, node_id, 1, "Spacing", NumberInput::default().min(1.), true);
let start_offset = number_widget(document_node, node_id, 2, "Start Offset", NumberInput::default().min(0.), true);
let stop_offset = number_widget(document_node, node_id, 3, "Stop Offset", NumberInput::default().min(0.), true);