diff --git a/Source/Editor/Windows/ContentWindow.cs b/Source/Editor/Windows/ContentWindow.cs index 1cf3a24f7..acea1e665 100644 --- a/Source/Editor/Windows/ContentWindow.cs +++ b/Source/Editor/Windows/ContentWindow.cs @@ -318,7 +318,7 @@ namespace FlaxEditor.Windows // Cache data var extension = Path.GetExtension(item.Path); - var newPath = StringUtils.CombinePaths(item.ParentFolder.Path, newShortName + extension); + var newPath = StringUtils.CombinePaths(item.ParentFolder.Path, Path.ChangeExtension(newShortName, extension)); // Check if was renaming mock element // Note: we create `_newElement` and then rename it to create new asset