Fix RPC call while not connected

main
copygirl 2 weeks ago
parent 3380bfdb6e
commit a3a33cd683
  1. 3
      copyMultiplayer.gd

@ -254,7 +254,8 @@ func on_model_changed(model: Node) -> void:
await get_tree().process_frame await get_tree().process_frame
var filename = main_controller._last_loaded_vrm.get_file() var filename = main_controller._last_loaded_vrm.get_file()
change_model.rpc(version, bone_lookup, blendshape_lookup, filename) if multiplayer.get_peers().size() > 1:
change_model.rpc(version, bone_lookup, blendshape_lookup, filename)
## Gets the SyncController for the player with the specified peer id. ## Gets the SyncController for the player with the specified peer id.

Loading…
Cancel
Save