public void ShowEditPart(M2SceneNode node) { if (node != null) { node.ShowEditPart(E_MODEL_EDIT_PART.EEP_MODEL, isShowModel); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_PARTICLES, isShowParticles); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_BOUNDINGBOX, isShowModelBoundingBox); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_BONES, isShowBones); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_ATTACHMENTPOINTS, isShowAttachmentPoints); } }
private void ShowEditPartExecuted(object sender, ExecutedRoutedEventArgs e) { E_MODEL_EDIT_PART?part = e.Parameter as E_MODEL_EDIT_PART?; if (!part.HasValue) { return; } bool show = ModelEditorService.Instance.IsShow(part.Value); M2SceneNode node = ModelSceneService.Instance.MainM2SceneNode; if (node != null) { switch (part.Value) { case E_MODEL_EDIT_PART.EEP_MODEL: node.ShowEditPart(part.Value, !show); break; case E_MODEL_EDIT_PART.EEP_PARTICLES: node.ShowEditPart(part.Value, !show); break; case E_MODEL_EDIT_PART.EEP_BOUNDINGBOX: node.ShowEditPart(part.Value, !show); break; case E_MODEL_EDIT_PART.EEP_BONES: node.ShowEditPart(part.Value, !show); break; case E_MODEL_EDIT_PART.EEP_ATTACHMENTPOINTS: node.ShowEditPart(part.Value, !show); break; } } ModelEditorService.Instance.SetShow(part.Value, !show); }
public void ShowEditPart(M2SceneNode node) { if (node != null) { node.ShowEditPart(E_MODEL_EDIT_PART.EEP_MODEL, isShowModel); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_PARTICLES, isShowParticles); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_BOUNDINGBOX, isShowModelBoundingBox); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_BONES, isShowBones); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_BOUNDINGAABOX, isShowBoundAABox); node.ShowEditPart(E_MODEL_EDIT_PART.EEP_COLLISIONAABOX, isShowCollisionAABox); } }