Skip to content

Commit 8e33d4a

Browse files
author
Felix Lange
committed
fix for loosing clip edits on restart or split/duplicate
1 parent 2ffed2a commit 8e33d4a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Timeline/RecordingBehaviour.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace RecordAndPlay
99
public class RecordingBehaviour : PlayableBehaviour
1010
{
1111
public Recording recording;
12-
13-
private Recording watchReference = null;
12+
[HideInInspector]
13+
public Recording watchReference = null;
1414
public bool RecordingChanged()
1515
{
1616
if (watchReference == recording)
@@ -24,6 +24,11 @@ public bool RecordingChanged()
2424
}
2525
}
2626

27+
public void CleanClone(RecordingBehaviour other)
28+
{
29+
watchReference = other.watchReference;
30+
}
31+
2732
// public override void OnGraphStart(Playable playable)
2833
// {
2934
// Debug.LogWarning("RecordingBehaviour::OnGraphStart");

0 commit comments

Comments
 (0)