public void SetAnimationEvaluator(AnimEvaluator pEvaluator) { var current = GetAnimationEvaluator(); if (current != null) { SrcObjects.Remove(current); } SrcObjects.Add(pEvaluator); }
public Scene(string name = "") : base(name) { RootNode = new Node(); Poses = SrcObjects.CreateCollectionView <Pose>(); Materials = SrcObjects.CreateCollectionView <SurfaceMaterial>(); Textures = SrcObjects.CreateCollectionView <Texture>(); Nodes = SrcObjects.CreateCollectionView <Node>(); SrcObjects.Add(new GlobalSettings()); SetAnimationEvaluator(new AnimEvaluator()); }