FC3Editor.Tools.ToolObject.UpdateGizmo C# (CSharp) Method

UpdateGizmo() private method

private UpdateGizmo ( ) : void
return void
        private void UpdateGizmo()
        {
            if (!this.m_gizmo.IsValid)
            {
                return;
            }
            if (this.m_selection.Count == 0)
            {
                this.ClearGizmo();
                return;
            }
            if (!this.m_paramGroupSelection.Value)
            {
                CoordinateSystem coordinateSystem = CoordinateSystem.FromAngles(this.m_gizmoObject.Angles);
                this.m_gizmo.Axis = ((this.m_paramAxisType.Value == AxisType.World) ? CoordinateSystem.Standard : coordinateSystem);
                this.m_gizmo.Position = this.m_gizmoObject.Position;
                return;
            }
            this.m_gizmo.Axis = CoordinateSystem.Standard;
            this.m_gizmo.Position = this.m_selection.GetComputeCenter();
        }