+1
Fixed

A0.04 (Mac) Docking ShaderForge and then switching layouts = broken

Andrei Nadin 11 years ago updated by Freya Holmér (Developer) 11 years ago 5

Dock the Shaderforge window, save the layout, switch layout away from shader forge and then back again. Annoyingly cannot right click the tab to close the SF window at this point. :(



Info Tab:

NODE IS NULL

UnityEngine.Debug:Log(Object)

ShaderForge.SF_Editor:OnGUI()

UnityEditor.DockArea:OnGUI()


Error Tab:

DivideByZeroException: Division by zero

UnityEditor.PreviewRenderUtility.InitPreview (Rect r)

UnityEditor.PreviewRenderUtility.BeginPreview (Rect r, UnityEngine.GUIStyle previewBackground)

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)

Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.

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:232)

System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)

ShaderForge.SF_PreviewWindow.DrawMesh (Rect previewRect)

ShaderForge.SF_PreviewWindow.OnGUI (Int32 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)


You can break out of the constant error messages preventing you from closing the tab by entering & exit play mode

Does this still happen in 0.11b?

Nope. seems to be fixed :)

BUT...


When I switch back to my Shadforge layout the ShaderForge tab is not there - seems it's not getting saved.

This is most likely the same issue that happened when you open Unity when you had closed SF with it. The "solution" was to detect when the error happened and close the window, so I suspect that's what's happening here. I think it would take time to get that fixed, but the errors of this topic is fixed by that, so I'll mark it as complete :)