change content folder detection mode on "CanRename"
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user