Fix crash when using content search in Visject surface

This commit is contained in:
Wojtek Figat
2024-06-03 10:54:22 +02:00
parent e0791eacad
commit f51a442357
2 changed files with 15 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ namespace FlaxEditor.Surface.Elements
ParentNode.ValuesChanged += OnNodeValuesChanged;
// Disable slider if surface doesn't allow it
if (!ParentNode.Surface.CanLivePreviewValueChanges)
if (ParentNode.Surface != null && !ParentNode.Surface.CanLivePreviewValueChanges)
_slideSpeed = 0.0f;
}