i forgor whsat i did
This commit is contained in:
parent
c1d99aa06e
commit
fb800946ab
9
Editor/Scripts/Editor/Data Types/IPT_Edge.cs
Normal file
9
Editor/Scripts/Editor/Data Types/IPT_Edge.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using UnityEditor.Experimental.GraphView;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace ImageProcessingGraph.Editor
|
||||
{
|
||||
public class IPT_Edge : Edge
|
||||
{
|
||||
}
|
||||
}
|
3
Editor/Scripts/Editor/Data Types/IPT_Edge.cs.meta
Normal file
3
Editor/Scripts/Editor/Data Types/IPT_Edge.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 76cd012b608644caa127970fd3caf115
|
||||
timeCreated: 1746343590
|
3
Editor/Scripts/Editor/Nodes/Types/Utils.meta
Normal file
3
Editor/Scripts/Editor/Nodes/Types/Utils.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e4a21d5960ac4b858705aec0bdaddab4
|
||||
timeCreated: 1746343737
|
3
Editor/Scripts/Editor/Nodes/Types/Utils/Connector.meta
Normal file
3
Editor/Scripts/Editor/Nodes/Types/Utils/Connector.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b77f4983d61d4a2ab1916ea59a0ec6fa
|
||||
timeCreated: 1746343741
|
@ -0,0 +1,25 @@
|
||||
using ImageProcessingGraph.Editor.Nodes.NodeAttributes;
|
||||
using ImageProcessingGraph.Editor.Unity_Image_Processing.Scripts.Editor.Windows;
|
||||
|
||||
namespace ImageProcessingGraph.Editor.Nodes.Types.Utils.Connector
|
||||
{
|
||||
[NodeInfo("", "Utility/Connection", false, null , editorType: typeof(GenericConnectionEditor))]
|
||||
public class GenericConnection : BaseImageNode
|
||||
{
|
||||
[NodeAttributes.Input(" ")] public object input;
|
||||
[NodeAttributes.Output(" ")] public object output;
|
||||
|
||||
public override void Process()
|
||||
{
|
||||
this.output = this.input;
|
||||
}
|
||||
}
|
||||
|
||||
public class GenericConnectionEditor : ImageProcessingGraphNodeVisual
|
||||
{
|
||||
public GenericConnectionEditor(BaseImageNode node, ImageProcessingGraphViewWindow window) : base(node, window)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c3fb7dc03aa647a8a99146ef19bb663e
|
||||
timeCreated: 1746343749
|
@ -218,7 +218,7 @@ namespace ImageProcessingGraph.Editor
|
||||
if (port.direction == startPort.direction)
|
||||
continue;
|
||||
|
||||
if (port.portType != startPort.portType)
|
||||
if (!port.portType.IsAssignableFrom(startPort.portType) || startPort.portType.IsAssignableFrom(port.portType))
|
||||
{
|
||||
if (DoesConversionNodeExist())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user