Add locking scene selection in properties window.
This commit is contained in:
@@ -37,6 +37,11 @@ namespace FlaxEditor.Windows
|
||||
/// </summary>
|
||||
public bool UIPivotRelative = true;
|
||||
|
||||
/// <summary>
|
||||
/// Indication of if the properties window is locked on specific objects.
|
||||
/// </summary>
|
||||
public bool LockObjects = false;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PropertiesWindow"/> class.
|
||||
/// </summary>
|
||||
@@ -62,6 +67,9 @@ namespace FlaxEditor.Windows
|
||||
|
||||
private void OnSelectionChanged()
|
||||
{
|
||||
if (LockObjects)
|
||||
return;
|
||||
|
||||
// Update selected objects
|
||||
// TODO: use cached collection for less memory allocations
|
||||
undoRecordObjects = Editor.SceneEditing.Selection.ConvertAll(x => x.UndoRecordObject).Distinct();
|
||||
|
||||
Reference in New Issue
Block a user