Fix exception in Custom Editors UI due to invalid reference value processing
#325
This commit is contained in:
@@ -251,6 +251,10 @@ namespace FlaxEditor.CustomEditors
|
||||
}
|
||||
if (instanceValues._hasReferenceValue)
|
||||
{
|
||||
// If the reference value is set for the parent values but it's null object then skip it
|
||||
if (instanceValues._referenceValue == null && !instanceValues.Type.IsValueType)
|
||||
return;
|
||||
|
||||
_referenceValue = Info.GetValue(instanceValues._referenceValue);
|
||||
_hasReferenceValue = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user