Added a more detailed error message when instatiating a scene with missing export properties.

(cherry picked from commit 1df0159b36)
This commit is contained in:
Raffaele Picca 2024-09-16 14:11:15 +02:00 committed by Rémi Verschelde
parent 2c612abdd1
commit 56a1d07421
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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());