From 843abca8cac5df44f91dd09028fb1ce1125b8ac6 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 14 Jul 2023 10:59:04 +0200 Subject: [PATCH] Fix error when opening shader asset if it's not visible in Content window --- Source/Editor/Content/Proxy/ShaderProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Content/Proxy/ShaderProxy.cs b/Source/Editor/Content/Proxy/ShaderProxy.cs index 2f5c6fe42..98d4eaa2d 100644 --- a/Source/Editor/Content/Proxy/ShaderProxy.cs +++ b/Source/Editor/Content/Proxy/ShaderProxy.cs @@ -29,7 +29,7 @@ namespace FlaxEditor.Content if (asset) { var source = Editor.GetShaderSourceCode(asset); - Utilities.Utils.ShowSourceCodeWindow(source, "Shader Source", item.RootWindow.Window); + Utilities.Utils.ShowSourceCodeWindow(source, "Shader Source", item.RootWindow?.Window); } return null; }