From 8c6708b18e4eb0d2c37d697ecda341feb9021da1 Mon Sep 17 00:00:00 2001 From: Walfie Date: Sun, 9 Jun 2024 21:02:12 -0400 Subject: [PATCH] Fix test --- examples/pin_item.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/pin_item.rs b/examples/pin_item.rs index 6a34763..d363ee5 100644 --- a/examples/pin_item.rs +++ b/examples/pin_item.rs @@ -2,7 +2,7 @@ use base64::Engine; use vtubestudio::data::{ - AngleRelativeTo, ArtMeshHitInfo, Event, EventSubscriptionRequest, ItemEventConfig, + AngleRelativeTo, ArtMeshPosition, Event, EventSubscriptionRequest, ItemEventConfig, ItemEventType, ItemLoadRequest, ItemPinRequest, ItemUnloadRequest, ModelClickedEventConfig, Permission, PermissionRequest, SizeRelativeTo, VertexPinType, }; @@ -87,7 +87,7 @@ async fn main() -> Result<(), Box> { position_x: 0.0, position_y: 0.0, size: 0.32, - rotation: 0, + rotation: 0.0, fade_time: 0.1, unload_when_plugin_disconnects: true, custom_data_base64: Some(base64_image.clone()), @@ -105,7 +105,7 @@ async fn main() -> Result<(), Box> { angle_relative_to: AngleRelativeTo::RelativeToModel.into(), size_relative_to: SizeRelativeTo::RelativeToCurrentItemSize.into(), vertex_pin_type: VertexPinType::Provided.into(), - pin_info: ArtMeshHitInfo { + pin_info: ArtMeshPosition { angle: 0.0, size: 0.0, ..hit.hit_info.clone()