mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 15:50:45 +00:00
Merge pull request #91084 from OwenAEdwards/master
Modify MultiplayerSpawner scene path error checking.
This commit is contained in:
commit
e5c0f60c59
@ -99,7 +99,7 @@ void MultiplayerSpawner::add_spawnable_scene(const String &p_path) {
|
|||||||
SpawnableScene sc;
|
SpawnableScene sc;
|
||||||
sc.path = p_path;
|
sc.path = p_path;
|
||||||
if (Engine::get_singleton()->is_editor_hint()) {
|
if (Engine::get_singleton()->is_editor_hint()) {
|
||||||
ERR_FAIL_COND(!FileAccess::exists(p_path));
|
ERR_FAIL_COND(!ResourceLoader::exists(p_path));
|
||||||
}
|
}
|
||||||
spawnable_scenes.push_back(sc);
|
spawnable_scenes.push_back(sc);
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user