You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[MP] Fix replication config reload error
Override the `reset_state` method to properly handle reloading the resource from disk.
This commit is contained in:
@@ -103,6 +103,14 @@ void SceneReplicationConfig::_get_property_list(List<PropertyInfo> *p_list) cons
|
||||
}
|
||||
}
|
||||
|
||||
void SceneReplicationConfig::reset_state() {
|
||||
dirty = false;
|
||||
properties.clear();
|
||||
sync_props.clear();
|
||||
spawn_props.clear();
|
||||
watch_props.clear();
|
||||
}
|
||||
|
||||
TypedArray<NodePath> SceneReplicationConfig::get_properties() const {
|
||||
TypedArray<NodePath> paths;
|
||||
for (const ReplicationProperty &prop : properties) {
|
||||
|
||||
Reference in New Issue
Block a user