Пример #1
0
 private void ClearGizmo()
 {
     if (this.m_gizmo.IsValid)
     {
         this.m_gizmo.Dispose();
         this.m_gizmo = Gizmo.Null;
     }
     this.m_gizmoObject = EditorObject.Null;
 }
Пример #2
0
 private void SetupGizmo(EditorObject gizmoObject)
 {
     this.ClearGizmo();
     this.m_gizmo = Gizmo.Create();
     this.m_gizmo.RotationMode = this.m_gizmoRotationMode;
     this.m_gizmoObject = gizmoObject;
     this.UpdateGizmo();
     this.TestGizmo();
 }
Пример #3
0
 public bool Start(Vec3 pivot)
 {
     this.m_refGizmo = this.m_context.m_gizmo;
     this.m_gizmoHelper.InitVirtualPlane(this.m_refGizmo.Position, this.m_refGizmo.Axis, this.m_refGizmo.Active);
     if (!this.m_gizmoHelper.GetVirtualPos(out this.m_virtualStart))
     {
         return false;
     }
     this.m_pivot = pivot;
     this.m_startPosition = pivot;
     base.AcquireInput();
     this.m_context.m_selection.SaveState();
     return true;
 }