Select selected objects on unlock properties.
This commit is contained in:
@@ -22,6 +22,7 @@ namespace FlaxEditor.Windows
|
||||
private IEnumerable<object> undoRecordObjects;
|
||||
|
||||
private readonly Dictionary<Guid, float> _actorScrollValues = new Dictionary<Guid, float>();
|
||||
private bool _lockObjects = false;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool UseLayoutData => true;
|
||||
@@ -44,7 +45,18 @@ namespace FlaxEditor.Windows
|
||||
/// <summary>
|
||||
/// Indication of if the properties window is locked on specific objects.
|
||||
/// </summary>
|
||||
public bool LockObjects = false;
|
||||
public bool LockObjects
|
||||
{
|
||||
get => _lockObjects;
|
||||
set
|
||||
{
|
||||
if (value == _lockObjects)
|
||||
return;
|
||||
_lockObjects = value;
|
||||
if (!value)
|
||||
OnSelectionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PropertiesWindow"/> class.
|
||||
|
||||
Reference in New Issue
Block a user