Change variable name to dropping.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user