Remove use of MediaPipeController

main
copygirl 3 weeks ago
parent b0ee3be5ed
commit bd180ec061
  1. 9
      sync_controller.gd

@ -110,10 +110,9 @@ static func send_model_animation(module: copyMultiplayer) -> void:
# Check if there's other players we're connected to.
if module.multiplayer.get_peers().size() == 0: return
var model := module.get_model()
var skeleton := module.get_skeleton()
var media_pipe = module.get_node("../MediaPipeController")
if (not model) or (not skeleton) or (not media_pipe): return
var model := module.get_model()
var skeleton := module.get_skeleton()
if (not model) or (not skeleton): return
write_stream.write_transform16(model.transform)
@ -132,7 +131,7 @@ static func send_model_animation(module: copyMultiplayer) -> void:
write_stream.write_bone_pose(restless_bones[bone_name])
# TODO: Only write non-default blendshapes. Anything missing = default.
var shape_dict: Dictionary = media_pipe.blend_shape_last_values
var shape_dict: Dictionary = {} # TODO: Redo the blendshapes.
write_stream.write_uint8(module.blendshape_to_lookup.size())
for shape_name in module.blendshape_to_lookup:
var shape_alpha: float = shape_dict[shape_name]

Loading…
Cancel
Save