Make grid-aligned node graph wires an experimental feature disabled by default

This commit is contained in:
Keavon Chambers
2025-02-21 13:27:30 -08:00
parent 2c88bee0ee
commit 5115a05c5b
3 changed files with 50 additions and 38 deletions
@@ -1325,9 +1325,9 @@ impl<'a> MessageHandler<NodeGraphMessage, NodeGraphHandlerData<'a>> for NodeGrap
input,
});
responses.add(PropertiesPanelMessage::Refresh);
if (!network_interface
if (network_interface
.reference(&node_id, selection_network_path)
.is_some_and(|reference| *reference == Some("Imaginate".to_string()))
.is_none_or(|reference| *reference != Some("Imaginate".to_string()))
|| input_index == 0)
&& network_interface.connected_to_output(&node_id, selection_network_path)
{
@@ -204,8 +204,8 @@ pub enum Direction {
#[derive(Copy, Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize, specta::Type)]
pub enum GraphWireStyle {
#[default]
GridAligned = 0,
Direct = 1,
Direct = 0,
GridAligned = 1,
}
impl std::fmt::Display for GraphWireStyle {