// Select button released
        public virtual void OnSelectEnd()
        {
            mode.UnlockTarget();

            // Was dragging?
            if (uvdragging)
            {
                // Dragging stops now
                uvdragging = false;
            }
            else
            {
                // Add/remove selection
                if (this.selected)
                {
                    this.selected = false;
                    mode.RemoveSelectedObject(this);
                }
                else
                {
                    this.selected = true;
                    mode.AddSelectedObject(this);
                }
            }
        }
Esempio n. 2
0
 // Select or deselect
 public virtual void OnSelectEnd()
 {
     if (this.selected)
     {
         this.selected = false;
         mode.RemoveSelectedObject(this);
     }
     else
     {
         this.selected = true;
         mode.AddSelectedObject(this);
     }
 }
        // Select or deselect
        public void OnSelectEnd()
        {
            if (this.selected)
            {
                this.selected = false;
                mode.RemoveSelectedObject(this);
            }
            else
            {
                if (this.pivot)
                {
                    General.Interface.DisplayStatus(Windows.StatusType.Warning, "It is not allowed to mark pivot slope handles as selected.");
                    return;
                }

                this.selected = true;
                mode.AddSelectedObject(this);
            }
        }