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 get
{ {
var hasParentFolder = ParentFolder != null; var hasParentFolder = ParentFolder != null;
var isContentFolder = IsFolder && Path == Editor.Instance.GameProject.ContentFolderPath; var isContentFolder = Node is MainContentTreeNode;
var isSourceFolder = IsFolder && Path == Editor.Instance.GameProject.SourceFolderPath; return hasParentFolder && !isContentFolder;
return hasParentFolder && !isContentFolder && !isSourceFolder;
} }
} }