Change variable name to dropping.

This commit is contained in:
Chandler Cox
2024-06-19 09:24:33 -05:00
parent 919e118a2f
commit a1adab1156
2 changed files with 5 additions and 5 deletions

View File

@@ -160,7 +160,7 @@ namespace FlaxEditor.Windows.Assets
var result = base.OnDragDrop(ref location, data);
if (result == DragDropEffect.None)
{
_window._isDragging = true;
_window._isDropping = true;
// Drag assets
if (_dragAssets != null && _dragAssets.HasValidDrag)
{

View File

@@ -42,7 +42,7 @@ namespace FlaxEditor.Windows.Assets
private bool _liveReload = false;
private bool _isUpdatingSelection, _isScriptsReloading;
private DateTime _modifiedTime = DateTime.MinValue;
private bool _isDragging = false;
private bool _isDropping = false;
/// <summary>
/// Gets the prefab hierarchy tree control.
@@ -274,14 +274,14 @@ namespace FlaxEditor.Windows.Assets
return true;
}
if (button == MouseButton.Left && _treePanel.ContainsPoint(ref location) && !_isDragging)
if (button == MouseButton.Left && _treePanel.ContainsPoint(ref location) && !_isDropping)
{
_tree.Deselect();
return true;
}
if (_isDragging)
if (_isDropping)
{
_isDragging = false;
_isDropping = false;
return true;
}
return false;