diff options
author | Raffaele Picca <picster@pixelgod.net> | 2024-09-16 14:11:15 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-17 09:59:13 +0200 |
commit | 56a1d07421e2e0610b80e7e3b307836492d0ec63 (patch) | |
tree | b688d7d4fc49b5b1be38144482d5838144e0734c /scene/resources | |
parent | 2c612abdd12bf91dc90e8534ba01954e1879995c (diff) | |
download | redot-engine-56a1d07421e2e0610b80e7e3b307836492d0ec63.tar.gz |
Added a more detailed error message when instatiating a scene with missing export properties.
(cherry picked from commit 1df0159b362493f280103de8085634c9c6d72f2e)
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/packed_scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index 900629f5f8..86b0ed668e 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -531,7 +531,7 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const { bool valid; Array array = dnp.base->get(dnp.property, &valid); - ERR_CONTINUE(!valid); + ERR_CONTINUE_EDMSG(!valid, vformat("Failed to get property '%s' from node '%s'.", dnp.property, dnp.base->get_name())); array = array.duplicate(); array.resize(paths.size()); |