瀏覽代碼

Fix issue with playing a custom scene from a UID

Co-Authored-By: Tomasz Chabora <[email protected]>
Nathan Hoad 5 月之前
父節點
當前提交
c45ca4ae04
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/gui/editor_run_bar.cpp

+ 1 - 1
editor/gui/editor_run_bar.cpp

@@ -259,7 +259,7 @@ void EditorRunBar::_run_scene(const String &p_scene_path, const Vector<String> &
 	String run_filename;
 	switch (current_mode) {
 		case RUN_CUSTOM: {
-			run_filename = p_scene_path;
+			run_filename = ResourceUID::ensure_path(p_scene_path);
 			run_custom_filename = run_filename;
 		} break;