Code style fix
This commit is contained in:
@@ -273,15 +273,15 @@ namespace FlaxEditor.SceneGraph.GUI
|
||||
|
||||
Select();
|
||||
|
||||
// disable scrolling of scene view
|
||||
// Disable scrolling of scene view
|
||||
Editor.Instance.Windows.SceneWin.ScrollingOnSceneTreeView(false);
|
||||
|
||||
|
||||
// Start renaming the actor
|
||||
var dialog = RenamePopup.Show(this, HeaderRect, _actorNode.Name, false);
|
||||
dialog.Renamed += OnRenamed;
|
||||
dialog.Closed += popup =>
|
||||
{
|
||||
// enable scrolling of scene view
|
||||
// Enable scrolling of scene view
|
||||
Editor.Instance.Windows.SceneWin.ScrollingOnSceneTreeView(true);
|
||||
};
|
||||
}
|
||||
@@ -290,8 +290,8 @@ namespace FlaxEditor.SceneGraph.GUI
|
||||
{
|
||||
using (new UndoBlock(ActorNode.Root.Undo, Actor, "Rename"))
|
||||
Actor.Name = renamePopup.Text;
|
||||
|
||||
// enable scrolling of scene view
|
||||
|
||||
// Enable scrolling of scene view
|
||||
Editor.Instance.Windows.SceneWin.ScrollingOnSceneTreeView(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ namespace FlaxEditor.Windows
|
||||
ScrollBars = ScrollBars.Both,
|
||||
Parent = this,
|
||||
};
|
||||
|
||||
|
||||
// Create scene structure tree
|
||||
var root = editor.Scene.Root;
|
||||
root.TreeNode.ChildrenIndent = 0;
|
||||
@@ -197,9 +197,9 @@ namespace FlaxEditor.Windows
|
||||
InputActions.Add(options => options.FocusSelection, () => Editor.Windows.EditWin.Viewport.FocusSelection());
|
||||
InputActions.Add(options => options.Rename, Rename);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Enables or disables vertical and horizontal scrolling on the scene tree panel
|
||||
/// Enables or disables vertical and horizontal scrolling on the scene tree panel.
|
||||
/// </summary>
|
||||
/// <param name="enabled">The state to set scrolling to</param>
|
||||
public void ScrollingOnSceneTreeView(bool enabled)
|
||||
|
||||
Reference in New Issue
Block a user