Minor fixes

This commit is contained in:
Wojtek Figat
2024-03-14 17:30:54 +01:00
parent 7545e49284
commit 3ba6867cd2
3 changed files with 4 additions and 2 deletions

View File

@@ -221,7 +221,6 @@ namespace FlaxEditor.Windows
{
if (!Editor.StateMachine.CurrentState.CanEditScene)
return;
ShowContextMenu(node, location);
}

View File

@@ -356,7 +356,7 @@ namespace FlaxEngine.GUI
for (int i = _children.Count - 1; i >= 0; i--)
{
var child = _children[i];
if (IntersectsChildContent(child, point, out var childLocation))
if (child.Visible && IntersectsChildContent(child, point, out var childLocation))
{
var containerControl = child as ContainerControl;
var childAtRecursive = containerControl?.GetChildAtRecursive(childLocation);

View File

@@ -1,6 +1,7 @@
// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
using System;
using System.ComponentModel;
namespace FlaxEngine.GUI
{
@@ -382,6 +383,7 @@ namespace FlaxEngine.GUI
/// <summary>
/// Gets or sets the shear transform angles (x, y). Defined in degrees. Shearing happens relative to the control pivot point.
/// </summary>
[DefaultValue(0.0f)]
[ExpandGroups, EditorDisplay("Transform"), EditorOrder(1040), Tooltip("The shear transform angles (x, y). Defined in degrees. Shearing happens relative to the control pivot point.")]
public Float2 Shear
{
@@ -398,6 +400,7 @@ namespace FlaxEngine.GUI
/// <summary>
/// Gets or sets the rotation angle (in degrees). Control is rotated around it's pivot point (middle of the control by default).
/// </summary>
[DefaultValue(0.0f)]
[ExpandGroups, EditorDisplay("Transform"), EditorOrder(1050), Tooltip("The control rotation angle (in degrees). Control is rotated around it's pivot point (middle of the control by default).")]
public float Rotation
{