Can't save plugin asset from commandlet

hi! i’m trying to save a plugin asset (saved into its content folder) using UEditorEngine::SavePackage from a commandlet, but i think there is a bug into UEditorEngine::IsPackageOKToSave.

the asset into the plugin content folder is relativized by IFileManager::ConvertToRelativePath to: …/…/Plugins/…

but in FLongPackagePathsSingleton.ContentPathToRoot that plugin appears relativized as: …/…/…/Engine/Plugins/…

that is the same relative path, but UEditorEngine::IsPackageOKToSave at line 308 (if (Result.StartsWith(Pair.ContentPath))) tries unsuccessfully to compare the two paths.

so UEditorEngine::IsPackageOKToSave fails at line 4064 trying to do FPackageName::TryConvertFilenameToLongPackageName.

can you please verify this issue?


We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.