Skip to content

Commit ecfaf73

Browse files
committed
Fix playable output weight slider was not setting it's value
1 parent 4d682ce commit ecfaf73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Editor/Scripts/Node/PlayableOutputNode.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ protected override void AppendNodeDescription()
118118
GUILayout.Label(LINE);
119119
GUILayout.Label("Source Input:");
120120
GUILayout.Label($" SourceOutputPort: {PlayableOutput.GetSourceOutputPort()}");
121-
EditorGUILayout.Slider(" Weight:", PlayableOutput.GetWeight(), 0, 1);
121+
EditorGUI.BeginChangeCheck();
122+
var weight = EditorGUILayout.Slider(" Weight:", PlayableOutput.GetWeight(), 0, 1);
123+
if (EditorGUI.EndChangeCheck()) PlayableOutput.SetWeight(weight);
122124
}
123125

124126
#endregion

0 commit comments

Comments
 (0)