Fix type usage

This commit is contained in:
Wojciech Figat
2022-12-19 10:10:26 +01:00
parent 979f8bcfee
commit 93f0b0e2e8
3 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ namespace FlaxEditor.SceneGraph.Actors
return false;
}
return Camera.Internal_IntersectsItselfEditor(Object.GetUnmanagedPtr(_actor), ref ray.Ray, out distance);
return Camera.Internal_IntersectsItselfEditor(FlaxEngine.Object.GetUnmanagedPtr(_actor), ref ray.Ray, out distance);
}
}
}

View File

@@ -243,7 +243,7 @@ namespace FlaxEditor.Viewport.Previews
public override void OnDestroy()
{
Material = null;
Object.Destroy(ref _previewMaterial);
FlaxEngine.Object.Destroy(ref _previewMaterial);
base.OnDestroy();
}

View File

@@ -231,10 +231,10 @@ namespace FlaxEditor.Windows.Assets
if (_previewSource)
{
_previewSource.Stop();
Object.Destroy(_previewSource);
FlaxEngine.Object.Destroy(_previewSource);
_previewSource = null;
}
Object.Destroy(ref _previewScene);
FlaxEngine.Object.Destroy(ref _previewScene);
base.OnDestroy();
}