Fix assigning null values into value types in Custom Editor
Resets back to previous value instead of setting the editor value to empty.
This commit is contained in:
@@ -663,7 +663,7 @@ namespace FlaxEditor.CustomEditors
|
||||
}
|
||||
}
|
||||
|
||||
if (obj == null || Values.Type.IsInstanceOfType(obj))
|
||||
if ((obj == null && !Values.Type.IsValueType) || Values.Type.IsInstanceOfType(obj))
|
||||
{
|
||||
result = obj;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user