Remove use of MediaPipeController

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

@ -112,8 +112,7 @@ static func send_model_animation(module: copyMultiplayer) -> void:
var model := module.get_model() var model := module.get_model()
var skeleton := module.get_skeleton() var skeleton := module.get_skeleton()
var media_pipe = module.get_node("../MediaPipeController") if (not model) or (not skeleton): return
if (not model) or (not skeleton) or (not media_pipe): return
write_stream.write_transform16(model.transform) 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]) write_stream.write_bone_pose(restless_bones[bone_name])
# TODO: Only write non-default blendshapes. Anything missing = default. # 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()) write_stream.write_uint8(module.blendshape_to_lookup.size())
for shape_name in module.blendshape_to_lookup: for shape_name in module.blendshape_to_lookup:
var shape_alpha: float = shape_dict[shape_name] var shape_alpha: float = shape_dict[shape_name]

Loading…
Cancel
Save