mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Basic material serialisation
This commit is contained in:
@@ -18,7 +18,7 @@ class PropertiesWindow : EditorWindow
|
||||
|
||||
private append String _selectedFileName = .();
|
||||
|
||||
private Asset _currentAsset ~ _.ReleaseRef();
|
||||
private Asset _currentAsset ~ _?.ReleaseRef();
|
||||
|
||||
public this(Editor editor)
|
||||
{
|
||||
@@ -103,6 +103,11 @@ class PropertiesWindow : EditorWindow
|
||||
return;
|
||||
|
||||
_currentPropertiesEditor.ShowEditor();
|
||||
|
||||
if (ImGui.Button("Save Asset"))
|
||||
{
|
||||
_editor.ContentManager.SaveAsset(_currentAsset);
|
||||
}
|
||||
|
||||
if (!assetFile.AssetConfig.Config.Changed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user