Ejemplo n.º 1
0
        public void LoadEditableModel(PackFile file)
        {
            var rmv = new RmvRigidModel(file.DataSource.ReadData(), file.Name);

            EditableMeshNode.SetModel(rmv, _resourceLibary, _animationView.Player, GeometryGraphicsContextFactory.CreateInstance(_resourceLibary.GraphicsDevice));

            _animationView.SetActiveSkeleton(rmv.Header.SkeletonName);
        }
        void UpdateSkeletonName()
        {
            string cleanName = "";

            if (!string.IsNullOrWhiteSpace(SkeletonName))
            {
                cleanName = Path.GetFileNameWithoutExtension(SkeletonName);
            }

            if (_mainNode.Model != null)
            {
                var service = new ModelEditorService(_mainNode);
                service.SetSkeletonName(cleanName);
            }

            _animationControllerViewModel.SetActiveSkeleton(cleanName);
        }