Merge branch 'xxSeys1-EditPrefabNoContentPanelChange'
This commit is contained in:
@@ -9,6 +9,7 @@ using FlaxEditor.CustomEditors.Elements;
|
|||||||
using FlaxEditor.GUI;
|
using FlaxEditor.GUI;
|
||||||
using FlaxEditor.GUI.ContextMenu;
|
using FlaxEditor.GUI.ContextMenu;
|
||||||
using FlaxEditor.GUI.Tree;
|
using FlaxEditor.GUI.Tree;
|
||||||
|
using FlaxEditor.Modules;
|
||||||
using FlaxEditor.Scripting;
|
using FlaxEditor.Scripting;
|
||||||
using FlaxEditor.Windows;
|
using FlaxEditor.Windows;
|
||||||
using FlaxEditor.Windows.Assets;
|
using FlaxEditor.Windows.Assets;
|
||||||
@@ -85,12 +86,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
|
|||||||
|
|
||||||
// Edit selected prefab asset
|
// Edit selected prefab asset
|
||||||
var editPrefab = panel.Button("Edit Prefab");
|
var editPrefab = panel.Button("Edit Prefab");
|
||||||
editPrefab.Button.Clicked += () =>
|
editPrefab.Button.Clicked += () => Editor.Instance.Windows.ContentWin.Open(Editor.Instance.ContentDatabase.FindAsset(prefab.ID));
|
||||||
{
|
|
||||||
Editor.Instance.Windows.ContentWin.ClearItemsSearch();
|
|
||||||
Editor.Instance.Windows.ContentWin.Select(prefab);
|
|
||||||
Editor.Instance.Windows.ContentWin.Open(Editor.Instance.Windows.ContentWin.View.Selection[0]);
|
|
||||||
};
|
|
||||||
|
|
||||||
// Viewing changes applied to this actor
|
// Viewing changes applied to this actor
|
||||||
var viewChanges = panel.Button("View Changes");
|
var viewChanges = panel.Button("View Changes");
|
||||||
|
|||||||
Reference in New Issue
Block a user