| 1048 | } |
| 1049 | |
| 1050 | UWorld* PickWorld(bool bWantPie, bool& bOutChosePie) |
| 1051 | { |
| 1052 | bOutChosePie = false; |
| 1053 | if (!GEditor) |
| 1054 | return nullptr; |
| 1055 | UWorld* PieWorld = GEditor->PlayWorld; |
| 1056 | if (bWantPie && PieWorld) |
| 1057 | { |
| 1058 | bOutChosePie = true; |
| 1059 | return PieWorld; |
| 1060 | } |
| 1061 | // No PIE running, or caller asked for editor world. |
| 1062 | return GEditor->GetEditorWorldContext().World(); |
| 1063 | } |
| 1064 | } // namespace |
| 1065 | |
| 1066 | bool FindActorsSync( |