From bd180ec0610d0c3bdb93b1f35f482de0e78342e0 Mon Sep 17 00:00:00 2001 From: copygirl Date: Mon, 9 Dec 2024 09:13:59 +0100 Subject: [PATCH] Remove use of MediaPipeController --- sync_controller.gd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sync_controller.gd b/sync_controller.gd index e4feeb3..51394d0 100644 --- a/sync_controller.gd +++ b/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]