private void removeNodeButton_Click(object sender, EventArgs e) { if (currentInfo == null) { return; } MaxNodeTree.QueueRemoveNode(MaxNodeTree.SelectedNode); }
private void removeNodeButton_Click(object sender, EventArgs e) { if (currentInfo == null) { return; } MaxNodeTree.BeginUpdate(); for (int i = 0; i < Loader.Core.SelNodeCount; ++i) { IINode node = Loader.Core.GetSelNode(i); MaxNodeTree.QueueRemoveNode(node); } MaxNodeTree.EndUpdate(); }
private void removeNodeButton_Click(object sender, EventArgs e) { if (currentInfo == null) { return; } if (currentAnimationParseType == AnimationParseType.Nodes) { MaxNodeTree.BeginUpdate(); for (int i = 0; i < Loader.Core.SelNodeCount; ++i) { IINode node = Loader.Core.GetSelNode(i); MaxNodeTree.QueueRemoveNode(node); } MaxNodeTree.EndUpdate(); } if (currentAnimationParseType == AnimationParseType.Materials) { if (Loader.Core.SelNodeCount < 1) { MessageBox.Show("You need to select at least one Node"); return; } for (int i = 0; i < Loader.Core.SelNodeCount; ++i) { IINode node = Loader.Core.GetSelNode(i); IMtl material = node.GetAnimatableMaterial(); if (material != null) { maxMaterialView.RemoveMaterialFromSelection(material); } } } }