Skip to content

Commit 3730d18

Browse files
committed
Fixed little issue in the timeline viewer
1 parent 3fbaae8 commit 3730d18

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Editor/Windows/FunctionTimeline.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ public TimelineContainer(ModularShader shader)
587587
{
588588
functionViewer.SelectedItem = item.Function;
589589
moduleViewer.SelectedItem = item.Row.Module;
590-
templateViewer.SelectedItem = item.Function.ShaderFunctionCode.Template;
590+
templateViewer.SelectedItem = item.Function.ShaderFunctionCode == null ? null : item.Function.ShaderFunctionCode.Template;
591591

592592
functionViewer.OnVariableSelected = variable =>
593593
{

Examples/ExampleModule2.asset

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ MonoBehaviour:
1717
Version: 1.0
1818
Author: VRLabs
1919
Description:
20-
RequiredIncludes: []
2120
Enabled:
2221
Name:
2322
DisplayName:
@@ -32,9 +31,8 @@ MonoBehaviour:
3231
Functions:
3332
- Name: DoSomething2
3433
AppendAfter: '#K#MAINPASSENTRY'
35-
Priority: 100
36-
ShaderFunctionCode: {fileID: 1413292532103889072, guid: 35e466f48e6f22d43b3f8730de2b17d7,
37-
type: 3}
34+
Queue: 100
35+
ShaderFunctionCode: {fileID: 0}
3836
UsedVariables:
3937
- Name: availableVariable
4038
Type: 4

0 commit comments

Comments
 (0)