0
Fixed
Editor don't display nodes
Hi,
I have a problem with a shader.
The editor don't display any nodes and the console returns in loop this error
NullReferenceException: Object reference not set to an instance of an object
ShaderForge.SFPSC_Properties.DrawInner (UnityEngine.Rect& r)
ShaderForge.SFPS_Category.Draw (Single yOffset)
ShaderForge.SF_PassSettings.OnLocalGUI (Int32 yOffset, Int32 in_maxWidth)
ShaderForge.SF_Editor.DrawPreviewPanel (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)
Thanks in advance.
I have a problem with a shader.
The editor don't display any nodes and the console returns in loop this error
NullReferenceException: Object reference not set to an instance of an object
ShaderForge.SFPSC_Properties.DrawInner (UnityEngine.Rect& r)
ShaderForge.SFPS_Category.Draw (Single yOffset)
ShaderForge.SF_PassSettings.OnLocalGUI (Int32 yOffset, Int32 in_maxWidth)
ShaderForge.SF_Editor.DrawPreviewPanel (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)
Thanks in advance.
Answer
Answer
Fixed
This is due to a bug in shaders saved using 0.29. There's a property node in the node order (at the end of the SF data), that doesn't exist.
It looks like this:
21-14-4-54
One of them doesn't exist among the nodes, see if you can find which ID that isn't associated with a node, and remove the ID from the list. Otherwise you can wait for 0.33, where this is automatically done when opening one of those shaders.
It looks like this:
21-14-4-54
One of them doesn't exist among the nodes, see if you can find which ID that isn't associated with a node, and remove the ID from the list. Otherwise you can wait for 0.33, where this is automatically done when opening one of those shaders.
I've created the shader with the release 0.32 but I can ricreate it.
I will use the actual shader to test the 0.33 release, I'll keep you updated.
I will use the actual shader to test the 0.33 release, I'll keep you updated.
Hi,
I have installed the beta 0.33 right now, and the editor works fine.
You are my man!
I have installed the beta 0.33 right now, and the editor works fine.
You are my man!
Customer support service by UserEcho
It looks like this:
21-14-4-54
One of them doesn't exist among the nodes, see if you can find which ID that isn't associated with a node, and remove the ID from the list. Otherwise you can wait for 0.33, where this is automatically done when opening one of those shaders.