Fixed issues found by PVS-Studio
This commit is contained in:
@@ -430,8 +430,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
|
||||
private bool SaveSurface()
|
||||
{
|
||||
_surface.Save();
|
||||
return false;
|
||||
return _surface.Save();
|
||||
}
|
||||
|
||||
private void SetCanEdit(bool canEdit)
|
||||
|
||||
@@ -1202,7 +1202,8 @@ namespace FlaxEditor.Windows.Assets
|
||||
|
||||
private bool SaveSurface()
|
||||
{
|
||||
_surface.Save();
|
||||
if (_surface.Save())
|
||||
return true;
|
||||
|
||||
// Reselect actors to prevent issues after Visual Script properties were modified
|
||||
Editor.Windows.PropertiesWin.Presenter.BuildLayoutOnUpdate();
|
||||
|
||||
Reference in New Issue
Block a user