mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 15:28:04 +08:00
Remove valid types
This commit is contained in:
@@ -59,8 +59,6 @@ pub struct FrontendGraphInput {
|
||||
pub description: String,
|
||||
#[serde(rename = "resolvedType")]
|
||||
pub resolved_type: String,
|
||||
#[serde(rename = "validTypes")]
|
||||
pub valid_types: Vec<String>,
|
||||
#[serde(rename = "connectedTo")]
|
||||
/// Either "nothing", "import index {index}", or "{node name} output {output_index}".
|
||||
pub connected_to: String,
|
||||
|
||||
@@ -663,20 +663,19 @@ impl NodeNetworkInterface {
|
||||
};
|
||||
|
||||
// TODO: Move in separate Tooltip overlay
|
||||
let valid_types = match self.valid_input_types(&input_connector, network_path) {
|
||||
Ok(input_types) => input_types.iter().map(|ty| ty.to_string()).collect(),
|
||||
Err(e) => {
|
||||
log::error!("Error getting valid types for input {input_connector:?}: {e}");
|
||||
Vec::new()
|
||||
}
|
||||
};
|
||||
// let valid_types = match self.valid_input_types(&input_connector, network_path) {
|
||||
// Ok(input_types) => input_types.iter().map(|ty| ty.to_string()).collect(),
|
||||
// Err(e) => {
|
||||
// log::error!("Error getting valid types for input {input_connector:?}: {e}");
|
||||
// Vec::new()
|
||||
// }
|
||||
// };
|
||||
|
||||
Some(FrontendGraphInput {
|
||||
data_type,
|
||||
resolved_type,
|
||||
name,
|
||||
description,
|
||||
valid_types,
|
||||
connected_to,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user