Add check and indication if no anim events are found.
This commit is contained in:
@@ -307,6 +307,10 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
b.Parent.Tag = time;
|
||||
b.ButtonClicked += OnAddAnimEvent;
|
||||
}
|
||||
if (!addEvent.ContextMenu.Items.Any())
|
||||
addEvent.ContextMenu.AddButton("No Anim Events Found.").CloseMenuOnClick = false;
|
||||
if (!addContinuousEvent.ContextMenu.Items.Any())
|
||||
addContinuousEvent.ContextMenu.AddButton("No Continuous Anim Events Found.").CloseMenuOnClick = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user