mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
Added ability to rename resources/directories in the resource table view
This commit is contained in:
@@ -34,11 +34,10 @@ protected:
|
||||
void DoMove(const TString& rkPath, bool IsAutoDir)
|
||||
{
|
||||
CVirtualDirectory *pOldDir = mpEntry->Directory();
|
||||
TString OldName = mpEntry->Name();
|
||||
bool Success = mpEntry->Move(rkPath, IsAutoDir);
|
||||
ASSERT(Success); // todo better error handling
|
||||
|
||||
gpEdApp->ResourceBrowser()->ResourceMoved(mpEntry, pOldDir, OldName);
|
||||
gpEdApp->ResourceBrowser()->ResourceMoved(mpEntry, pOldDir, mpEntry->Name());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user