Minor tweaks

This commit is contained in:
Wojtek Figat
2023-08-01 14:14:27 +02:00
parent 869649e5ed
commit 8dc98174cf
9 changed files with 2 additions and 25 deletions

View File

@@ -344,7 +344,6 @@ namespace FlaxEditor.Windows.Assets
// Load surface graph
if (_surface.Load())
{
// Error
Editor.LogError("Failed to load animation graph surface.");
return true;
}

View File

@@ -284,7 +284,6 @@ namespace FlaxEditor.Windows.Assets
var mainNode = _surface.FindNode(1, 1) as Surface.Archetypes.Material.SurfaceNodeMaterial;
if (mainNode == null)
{
// Error
Editor.LogError("Failed to find main material node.");
}
return mainNode;

View File

@@ -238,7 +238,6 @@ namespace FlaxEditor.Windows.Assets
// Load surface graph
if (_surface.Load())
{
// Error
Editor.LogError("Failed to load Particle Emitter surface.");
return true;
}

View File

@@ -1131,7 +1131,6 @@ namespace FlaxEditor.Windows.Assets
// Save data to the asset
if (_asset.SaveSurface(value, ref meta))
{
// Error
_surface.MarkAsEdited();
Editor.LogError("Failed to save surface data");
}
@@ -1192,7 +1191,6 @@ namespace FlaxEditor.Windows.Assets
// Load surface graph
if (_surface.Load())
{
// Error
Editor.LogError("Failed to load Visual Script surface.");
return true;
}