Skip to content

Commit

Permalink
timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
huailiang committed Jul 8, 2020
1 parent 496a8ee commit dd9b0b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions Assets/timeline/Editor/XTrackEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public static void Remove(this XTrack track, XTimeline timeline)
timeline.trackTrees = list.ToArray();
}
}
track.Dispose();
}

public static bool IsAllSubTrackMuted(this XTrack track)
Expand Down
1 change: 0 additions & 1 deletion Assets/timeline/Editor/treeview/EditorSceneFxTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ private void AddClip(Object obj, float t)
data.seed = 0;
data.scale = Vector3.one;
XSceneFxClip clip = new XSceneFxClip((XSceneFxTrack)track, data);
clip.SetReference((GameObject)obj);
track.AddClip(clip, data);
}

Expand Down
5 changes: 0 additions & 5 deletions Assets/timeline/Runtime/clips/XSceneFxClip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ public XSceneFxClip(XSceneFxTrack track, ClipData data) : base(track, data)
Load(fxdata.prefab, fxdata.pos, fxdata.rot, fxdata.scale);
}

public void SetReference(GameObject refObj)
{
prefabGameObject = refObj;
}

public void Load(string path)
{
Load(path, Vector3.zero, Vector3.zero, Vector3.one);
Expand Down

0 comments on commit dd9b0b1

Please sign in to comment.