0
Under review

Drag and drop a splatmap to the shader node break the shader

Jairo Baldán 10 years ago updated by Freya Holmér (Developer) 10 years ago 9
Could you elaborate?
Delete how?
Remove a reference or delete the Texture2D node?
How does it break?
Does the shader go pink or do you get red inputs on the following nodes?
For example you can make a simple shader with a texture2D connected to a diffuse, drag and drop to the texture a splatmap from a terrain, and close the shader, you can't open it.
InvalidCastException: Cannot cast from source type to destination type.
ShaderForge.SFN_Tex2d.RefreshNoTexValueAndNormalUnpack ()
ShaderForge.SFN_Tex2d.OnAssignedTexture ()
ShaderForge.SFN_Tex2d.NeatWindow ()
ShaderForge.SF_Node.DrawWindow ()
ShaderForge.SFN_Tex2d.Draw ()
ShaderForge.SF_EditorNodeView.OnLocalGUI (Rect r)
ShaderForge.SF_Editor.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
I updated the title too
I think this may have been fixed in Beta 0.18, which is currently being verified by Unity. Let me know if it works when it's out :)
Do you still get this issue in the latest version?
Yes, for reproduce the bug you only need to drag an drop a splatmap from terrain asset.