Remove popup from appearing if the content item can not re renamed.

This commit is contained in:
Chandler Cox
2023-08-19 12:47:29 -05:00
parent 122524bd19
commit 134273abd9

View File

@@ -340,6 +340,9 @@ namespace FlaxEditor.Windows
/// <returns>The created renaming popup.</returns>
public void Rename(ContentItem item)
{
if (!item.CanRename)
return;
// Show element in the view
Select(item, true);