We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68538b9 commit da6e239Copy full SHA for da6e239
1 file changed
engine/Sandbox.Engine/Resources/Material/Material.Load.cs
@@ -14,9 +14,6 @@ public static Material Load( string filename )
14
{
15
ThreadSafe.AssertIsMainThread();
16
17
- if ( Application.IsUnitTest )
18
- return default;
19
-
20
if ( !string.IsNullOrWhiteSpace( filename ) && Directory.TryLoad( filename, ResourceType.Material, out object model ) && model is Material m )
21
return m;
22
@@ -32,9 +29,6 @@ public static async Task<Material> LoadAsync( string filename )
32
29
33
30
34
31
35
36
37
38
if ( !string.IsNullOrWhiteSpace( filename ) && await Directory.TryLoadAsync( filename, ResourceType.Material ) is Material m )
39
40
0 commit comments