Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit e2d9564

Browse files
author
serg.morozov
committed
fix: DataNodeHolder visualization
1 parent b88ed7b commit e2d9564

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/com.nuclearband.sodatabase/Editor/ScriptableObjectDatabaseEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ protected override void OnBeginDrawEditors()
225225
path += string.IsNullOrEmpty((MenuTree.Selection.SelectedValue as Holder)!.Path) ? string.Empty : (MenuTree.Selection.SelectedValue as Holder)!.Path + "/";
226226
if (MenuTree.Selection.SelectedValue is FolderHolder folderHolder)
227227
path += folderHolder.Name + "/";
228-
path = path.Substring(0, path.Length - 1);
228+
path = path[..^1];
229229
if (SirenixEditorGUI.ToolbarButton(new GUIContent("Create DataNode")))
230230
DataNodeCreator.ShowDialog<DataNode>(path, TrySelectMenuItemWithObject);
231231

Assets/com.nuclearband.sodatabase/Runtime/Holders/DataNodeHolder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Nuclear.SODatabase
77
{
88
internal class DataNodeHolder : Holder
99
{
10-
[InlineEditor(InlineEditorObjectFieldModes.CompletelyHidden)] internal DataNode DataNode;
10+
[InlineEditor(InlineEditorObjectFieldModes.CompletelyHidden)] [ShowInInspector] internal DataNode DataNode;
1111

1212
internal DataNodeHolder(string path, string name, DataNode dataNode) : base(path, name) => DataNode = dataNode;
1313

0 commit comments

Comments
 (0)