Пример #1
0
 public void SetWireFrame(M2SceneNode node)
 {
     if (node != null)
     {
         node.SetWireFrame(M2WireFrame);
     }
 }
Пример #2
0
        private void WireFrameExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            E_OVERRIDE_WIREFRAME?wireframe = e.Parameter as E_OVERRIDE_WIREFRAME?;

            if (!wireframe.HasValue)
            {
                return;
            }

            M2SceneNode node = ModelSceneService.Instance.MainM2SceneNode;

            if (node != null)
            {
                node.SetWireFrame(wireframe.Value);
            }

            ModelEditorService.Instance.M2WireFrame = wireframe.Value;
        }