Merge branch 'prop-lock-select' of https://github.com/Tryibion/FlaxEngine into Tryibion-prop-lock-select
This commit is contained in:
@@ -45,6 +45,8 @@ namespace FlaxEditor.Windows.Assets
|
|||||||
private DateTime _modifiedTime = DateTime.MinValue;
|
private DateTime _modifiedTime = DateTime.MinValue;
|
||||||
private bool _isDropping = false;
|
private bool _isDropping = false;
|
||||||
|
|
||||||
|
private bool _lockSelection = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the prefab hierarchy tree control.
|
/// Gets the prefab hierarchy tree control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -76,7 +78,18 @@ namespace FlaxEditor.Windows.Assets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indication of if the prefab window selection is locked on specific objects.
|
/// Indication of if the prefab window selection is locked on specific objects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool LockSelectedObjects = false;
|
public bool LockSelectedObjects
|
||||||
|
{
|
||||||
|
get => _lockSelection;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (_lockSelection == value)
|
||||||
|
return;
|
||||||
|
_lockSelection = value;
|
||||||
|
if (!value)
|
||||||
|
OnSelectionChanged(Graph.Root.SceneContext.Selection.ToArray());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether use live reloading for the prefab changes (applies prefab changes on modification by auto).
|
/// Gets or sets a value indicating whether use live reloading for the prefab changes (applies prefab changes on modification by auto).
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ namespace FlaxEditor.Windows
|
|||||||
private IEnumerable<object> undoRecordObjects;
|
private IEnumerable<object> undoRecordObjects;
|
||||||
|
|
||||||
private readonly Dictionary<Guid, float> _actorScrollValues = new Dictionary<Guid, float>();
|
private readonly Dictionary<Guid, float> _actorScrollValues = new Dictionary<Guid, float>();
|
||||||
|
private bool _lockObjects = false;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override bool UseLayoutData => true;
|
public override bool UseLayoutData => true;
|
||||||
@@ -44,7 +45,18 @@ namespace FlaxEditor.Windows
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indication of if the properties window is locked on specific objects.
|
/// Indication of if the properties window is locked on specific objects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool LockObjects = false;
|
public bool LockObjects
|
||||||
|
{
|
||||||
|
get => _lockObjects;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value == _lockObjects)
|
||||||
|
return;
|
||||||
|
_lockObjects = value;
|
||||||
|
if (!value)
|
||||||
|
OnSelectionChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PropertiesWindow"/> class.
|
/// Initializes a new instance of the <see cref="PropertiesWindow"/> class.
|
||||||
|
|||||||
Reference in New Issue
Block a user