Fix Visject Surface search to check nested surfaces (such as State Machine graphs)
This commit is contained in:
@@ -87,7 +87,7 @@ namespace FlaxEditor.Surface
|
||||
Title = TitleValue;
|
||||
Color = ColorValue;
|
||||
var size = SizeValue;
|
||||
if (Surface.GridSnappingEnabled)
|
||||
if (Surface != null && Surface.GridSnappingEnabled)
|
||||
size = Surface.SnapToGrid(size, true);
|
||||
Size = size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user