private AnimationViewModel MapAnimationViewModel(ulong animationId, string name) { var vm = new AnimationViewModel(animationId, name); vm.NameChanged += newName => _editor.RenameAnimation(animationId, newName); return(vm); }
private void OnDocumentLoaded(DocumentLoaded msg) { Animations.Clear(); _index.Clear(); foreach (var animation in msg.Document.GetAnimations()) { AddAnimation(animation.Id, animation.Name); } _selectedAnimation = null; }