#DEV-VR - Manual merge of from DevMain @ CL 4166765

#RB:none
#CodeReview: nick.whiting

[CL 4169831 by Jason Bestimt in Dev-VR branch]
This commit is contained in:
Jason Bestimt
2018-06-28 11:08:34 -04:00
parent 8268d7367f
commit 17c16f57bb
737 changed files with 22742 additions and 12435 deletions

View File

@@ -275,7 +275,7 @@ private:
);
MenuBuilder.AddSubMenu(
LOCTEXT("RecentPythonsSubMenu", "Recent Python Scripts"),
LOCTEXT("RecentPythonsSubMenu_ToolTip", "Select a level to load"),
LOCTEXT("RecentPythonsSubMenu_ToolTip", "Select a recent Python Script file and Execute it."),
FNewMenuDelegate::CreateRaw(this, &FPythonCommandMenuImpl::MakeRecentPythonScriptMenu),
false,
FSlateIcon(FEditorStyle::GetStyleSetName(), "MainFrame.RecentLevels")
@@ -288,7 +288,7 @@ private:
if (RecentsFiles.IsValidIndex(Index))
{
FString PyCopied = RecentsFiles[Index];
GEngine->Exec(NULL, *FString::Printf(TEXT("py %s"), *PyCopied));
GEngine->Exec(NULL, *FString::Printf(TEXT("py \"%s\""), *PyCopied));
}
}
@@ -318,7 +318,7 @@ private:
bRecentsFilesDirty = true;
}
GEngine->Exec(NULL, *FString::Printf(TEXT("py %s"), *OpenedFiles.Last()));
GEngine->Exec(NULL, *FString::Printf(TEXT("py \"%s\""), *OpenedFiles.Last()));
}
}
}