From 4e2870e90cdcc0b3c04713eefaf1f4b469ef997b Mon Sep 17 00:00:00 2001 From: NoriteSC <53096989+NoriteSC@users.noreply.github.com> Date: Fri, 6 Oct 2023 22:56:16 +0200 Subject: [PATCH] Update Source/Editor/Surface/Archetypes/Material.cs Co-authored-by: stefnotch --- Source/Editor/Surface/Archetypes/Material.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Surface/Archetypes/Material.cs b/Source/Editor/Surface/Archetypes/Material.cs index 77bdb25c6..6fee3a978 100644 --- a/Source/Editor/Surface/Archetypes/Material.cs +++ b/Source/Editor/Surface/Archetypes/Material.cs @@ -909,7 +909,9 @@ namespace FlaxEditor.Surface.Archetypes Description = "Creates a partial derivative (fwidth)", Flags = NodeFlags.MaterialGraph, Size = new Float2(150, 20), - ConnectionsHints = ConnectionsHint.Vector, + ConnectionsHints = ConnectionsHint.Numeric, + IndependentBoxes = new[] { 0 }, + DependentBoxes = new[] { 1 }, Elements = new[] { NodeElementArchetype.Factory.Input(0, "value", true, typeof(float), 0),