void RecomputeRectUnions() { m_MustRecomputeUnions = false; m_Unions.Clear(); if (children == null) { return; } foreach (var c in children.OfType <TimelineTrackGUI>()) { c.RebuildGUICacheIfNecessary(); m_Unions.AddRange(TimelineClipUnion.Build(c.clips)); } }
void RecomputeRectUnions() { m_MustRecomputeUnions = false; m_Unions.Clear(); if (children == null) { return; } foreach (var c in children) { var trackGUI = c as TimelineTrackGUI; if (trackGUI != null) { trackGUI.RebuildGUICacheIfNecessary(); m_Unions.AddRange(TimelineClipUnion.Build(trackGUI.clips)); } } }