Merge pull request #83279 from Faless/mp/fix_delta_indexed

[MP] Fix "on change" indexed properties
This commit is contained in:
Rémi Verschelde 2023-10-13 22:20:21 +02:00
commit 325cc0178e
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -387,7 +387,7 @@ Error MultiplayerSynchronizer::_watch_changes(uint64_t p_usec) {
bool valid = false;
const Object *obj = _get_prop_target(node, prop);
ERR_CONTINUE_MSG(!obj, vformat("Node not found for property '%s'.", prop));
Variant v = obj->get(prop.get_concatenated_subnames(), &valid);
Variant v = obj->get_indexed(prop.get_subnames(), &valid);
ERR_CONTINUE_MSG(!valid, vformat("Property '%s' not found.", prop));
Watcher &w = ptr[idx];
if (w.prop != prop) {