Add layer doesn't work in Blend Node
Steps to reproduce:
- Add Blend Node
- Click on "Add layer" in Node
Expected result: new layer
Actual result: Exception: Draw Graph Window failed: System.InvalidCastException: Specified cast is not valid.
Draw Graph Window failed: System.InvalidCastException: Specified cast is not valid.
at MapMagic.Nodes.MatrixGenerators.Blend200+<>c.<set_Layers>b__4_0 (System.Object i) [0x00000] in F:\GameProjects\MM2\Assets\MapMagic\Runtime\Generators\Matrix\MatrixModifiers.cs:176
at System.Array.ConvertAll[TInput,TOutput] (TInput[] array, System.Converter2[TInput,TOutput] converter) [0x00029] in <437ba245d8404784b9fbab9b439ac908>:0 at MapMagic.Nodes.MatrixGenerators.Blend200.set_Layers (System.Object[] value) [0x00001] in F:\GameProjects\MM2\Assets\MapMagic\Runtime\Generators\Matrix\MatrixModifiers.cs:176 at MapMagic.Nodes.GUI.GeneratorDraw+<>c__DisplayClass12_0.<DrawLayers>g__Add|0 (System.Int32 num) [0x000e4] in F:\GameProjects\MM2\Assets\MapMagic\Editor\Nodes\GeneratorDraw.cs:297 at Plugins.GUI.LayersEditor.DrawAddRemove (System.Object id, System.Action
1[T] onAdd, System.Action1[T] onRemove, System.Action
2[T1,T2] onMove) [0x00060] in F:\GameProjects\MM2\Assets\MapMagic\Tools\Editor\GUI\Layers.cs:312
at Plugins.GUI.LayersEditor.DrawAddRemove (System.Object id, System.String label, System.Action1[T] onAdd, System.Action
1[T] onRemove, System.Action`2[T1,T2] onMove) [0x00033] in F:\GameProjects\MM2\Assets\MapMagic\Tools\Editor\GUI\Layers.cs:377
at MapMagic.Nodes.GUI.GeneratorDraw.DrawLayers (MapMagic.Nodes.ILayered layGen) [0x0006a] in F:\GameProjects\MM2\Assets\MapMagic\Editor\Nodes\GeneratorDraw.cs:349
at MapMagic.Nodes.GUI.GeneratorDraw.DrawGenerator (MapMagic.Nodes.Generator gen, MapMagic.Nodes.Graph graph, System.Boolean selected) [0x0020b] in F:\GameProjects\MM2\Assets\MapMagic\Editor\Nodes\GeneratorDraw.cs:94
at MapMagic.Nodes.GUI.GraphWindow.DrawGraph () [0x003b1] in F:\GameProjects\MM2\Assets\MapMagic\Editor\Nodes\GraphWindow.cs:287