mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 00:16:45 +00:00
Handle python scripts via drag-and-drop to the window
This commit is contained in:
@@ -729,6 +729,11 @@ void MainWindow::LoadFromFilename(const QString &filename, bool temporary)
|
||||
{
|
||||
LoadCapture(filename, m_Ctx.Config().DefaultReplayOptions, temporary, true);
|
||||
}
|
||||
else if(ext == lit("py"))
|
||||
{
|
||||
m_Ctx.ShowPythonShell();
|
||||
m_Ctx.GetPythonShell()->LoadScriptFromFilename(filename);
|
||||
}
|
||||
else if(ext == lit("cap"))
|
||||
{
|
||||
OpenCaptureConfigFile(filename, false);
|
||||
|
||||
Reference in New Issue
Block a user