change content folder detection mode on "CanRename"

This commit is contained in:
Ruan Lucas
2023-06-12 20:04:32 -04:00
parent 8f76fe4049
commit 164670cceb

View File

@@ -118,9 +118,8 @@ namespace FlaxEditor.Content
get
{
var hasParentFolder = ParentFolder != null;
var isContentFolder = IsFolder && Path == Editor.Instance.GameProject.ContentFolderPath;
var isSourceFolder = IsFolder && Path == Editor.Instance.GameProject.SourceFolderPath;
return hasParentFolder && !isContentFolder && !isSourceFolder;
var isContentFolder = Node is MainContentTreeNode;
return hasParentFolder && !isContentFolder;
}
}