mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed AssetHandle serialization
- Serialize MeshComponents - Fixed handling renamed files
This commit is contained in:
@@ -4,27 +4,8 @@ using GlitchyEngine.Content;
|
||||
|
||||
namespace GlitchyEngine.Renderer
|
||||
{
|
||||
public struct MeshComponent// : IDisposableComponent
|
||||
public struct MeshComponent
|
||||
{
|
||||
public AssetHandle<GeometryBinding> Mesh {get; set mut;} = .Invalid;
|
||||
/*
|
||||
private GeometryBinding _mesh;
|
||||
public AssetHandle<GeometryBinding> Mesh
|
||||
{
|
||||
[Inline]
|
||||
get => _mesh;
|
||||
set mut
|
||||
{
|
||||
if(_mesh == value)
|
||||
return;
|
||||
|
||||
SetReference!(_mesh, value);
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose() mut
|
||||
{
|
||||
ReleaseRefAndNullify!(_mesh);
|
||||
}*/
|
||||
public AssetHandle<GeometryBinding> Mesh = .Invalid;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user