9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
36 lines
854 B
C#
36 lines
854 B
C#
using Codice.Client.Commands.WkTree;
|
|
using Codice.CM.Common;
|
|
|
|
namespace Codice
|
|
{
|
|
internal static class CheckWorkspaceTreeNodeStatus
|
|
{
|
|
internal static bool IsPrivate(WorkspaceTreeNode node)
|
|
{
|
|
return node == null;
|
|
}
|
|
|
|
internal static bool IsCheckedOut(WorkspaceTreeNode node)
|
|
{
|
|
if (node == null)
|
|
return false;
|
|
|
|
return node.RevInfo.CheckedOut;
|
|
}
|
|
|
|
internal static bool IsAdded(WorkspaceTreeNode node)
|
|
{
|
|
if (node == null)
|
|
return false;
|
|
|
|
return node.RevInfo.CheckedOut &&
|
|
node.RevInfo.ParentId == -1;
|
|
}
|
|
|
|
internal static bool IsDirectory(WorkspaceTreeNode node)
|
|
{
|
|
return node.RevInfo.Type == EnumRevisionType.enDirectory;
|
|
}
|
|
}
|
|
}
|