diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-04-07 16:25:11 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-04-07 16:25:11 -0400 |
| commit | 8c0dbef6b21a0331916ae96ea5cd3b5613e50b6b (patch) | |
| tree | bfbc487de4bc212c00f57e1ba38e08cccac6978d /editor | |
| parent | 7b43a9b51d9df0bc0e18102415f877772031f440 (diff) | |
pke: temp load scene by file path
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index 72f35f6..6eb7f35 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -108,7 +108,7 @@ void PkeEditor_Tick(double delta) { "pke-runtime", "--plugin", pkeSettings.args.pluginPath == nullptr ? "libpke-example.o" : pkeSettings.args.pluginPath, "--project", pkeSettings.args.projectPath == nullptr ? PKE_PROJ_DEFAULT_FILENAME : pkeSettings.args.projectPath, - "--scene", (editor_mstr.active_scene != nullptr && editor_mstr.active_scene->name[0] != '\0') ? editor_mstr.active_scene->name : PKE_PROJ_DEFAULT_FILENAME , + "--scene", (editor_mstr.active_scene != nullptr && editor_mstr.active_scene->file_path.length > 0) ? editor_mstr.active_scene->file_path.val : PKE_PROJ_DEFAULT_FILENAME , NULL, }; status = execvp("pke-runtime", const_cast<char **>(argv)); |
