From 8c0dbef6b21a0331916ae96ea5cd3b5613e50b6b Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 7 Apr 2025 16:25:11 -0400 Subject: pke: temp load scene by file path --- editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') 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(argv)); -- cgit v1.2.3