Skip to content

Commit fcc8a78

Browse files
committed
Fixed the incorrect namespace being assumed for collections
1 parent 05f4f07 commit fcc8a78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/Editor/Core/CollectionSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public CollectionSettings(ScriptableObjectCollection targetCollection)
2929
{
3030
Guid = targetCollection.GUID;
3131
string targetNamespace = targetCollection.GetItemType().Namespace;
32-
if (!string.IsNullOrEmpty(SOCSettings.Instance.NamespacePrefix))
32+
if (string.IsNullOrEmpty(targetNamespace) && !string.IsNullOrEmpty(SOCSettings.Instance.NamespacePrefix))
3333
targetNamespace = $"{SOCSettings.Instance.NamespacePrefix}";
3434

3535
Namespace = targetNamespace;
@@ -143,4 +143,4 @@ public void SetParentFolderPath(string assetPath)
143143
Save();
144144
}
145145
}
146-
}
146+
}

0 commit comments

Comments
 (0)