Tweaks and improvements

This commit is contained in:
Wojtek Figat
2021-07-29 15:41:58 +02:00
parent 92b1e067b1
commit f42d2b8a18
6 changed files with 22 additions and 32 deletions

View File

@@ -288,12 +288,12 @@ namespace FlaxEditor.Surface
/// <remarks>
/// Don't call it too often. It does memory allocation and iterates over the surface controls to find comments in the graph.
/// </remarks>
public List<SurfaceComment> Comments => _context.Comments;
public List<SurfaceComment> Comments => _context?.Comments;
/// <summary>
/// The current surface context nodes collection. Read-only.
/// </summary>
public List<SurfaceNode> Nodes => _context.Nodes;
public List<SurfaceNode> Nodes => _context?.Nodes;
/// <summary>
/// The surface node descriptors collection.