Skip to content

Commit b4990a2

Browse files
authored
Update AssetsContainer.cs
1 parent e987ae4 commit b4990a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

DataSerializer/AssetsContainer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ public bool TryResolveReference(string id, out object value)
4545
// TODO: Make everything with loops and lists instead of LINQ
4646
public void LoadAssets()
4747
{
48-
if (_paths == null || _paths.Length == 0)
48+
if (_paths == null)
4949
return;
5050

5151
_paths = _paths.Where(x => !string.IsNullOrEmpty(x) && AssetDatabase.IsValidFolder(x)).ToArray();
5252

53+
if (_paths.Length == 0)
54+
return;
55+
5356
var assets = new List<Object>();
5457

5558
assets = AssetDatabase

0 commit comments

Comments
 (0)