public void GetNextRenderable() { // // Cycle through generation chain, swap out objects. // if (!(OutsideSimulatorApp.GetInstance().SceneRootNode.Children.Count((x) => x.Value == ClickedNode) > 0)) return; var childName = OutsideSimulatorApp.GetInstance().SceneRootNode.Children.First((x) => x.Value == ClickedNode).Key; var nextChain = Renderable.RenderableFactory.GetNextRenderableInModificationChain(ClickedNode.Renderable); if (nextChain != null) { var swapoutaction = new Commands.Undoables.ReplaceRenderable(childName, nextChain); swapoutaction.Redo(); OutsideSimulatorApp.GetInstance().CommandStack.Push(swapoutaction); } }
public void GetNextRenderable() { // // Cycle through generation chain, swap out objects. // if (!(OutsideSimulatorApp.GetInstance().SceneRootNode.Children.Count((x) => x.Value == ClickedNode) > 0)) { return; } var childName = OutsideSimulatorApp.GetInstance().SceneRootNode.Children.First((x) => x.Value == ClickedNode).Key; var nextChain = Renderable.RenderableFactory.GetNextRenderableInModificationChain(ClickedNode.Renderable); if (nextChain != null) { var swapoutaction = new Commands.Undoables.ReplaceRenderable(childName, nextChain); swapoutaction.Redo(); OutsideSimulatorApp.GetInstance().CommandStack.Push(swapoutaction); } }