Example #1
0
 void BrushEvent(Objects.Node s)
 {
     //Objects.Node s = (Objects.Node)sender;
     //Seta Material
     if (ToggleMaterial.IsChecked == true)
     {
         s.node.material = s.node.material == WorkingNet.material ? (Material)MatList.SelectedValue : WorkingNet.material;
     }
     //Seta Input
     if (ToggleInput.IsChecked == true)
     {
         s.node.input = !s.node.input;
     }
     if (ToggleTrack.IsChecked == true)
     {
         s.Tracking = !s.Tracking;
         EvokeTrackNode(s.node);
     }
     s.Redraw();
 }