From ae14c194a25e258659104e89553ad48a8ae9ca3b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 3 Feb 2025 21:46:29 +0100 Subject: armatures in prefab --- client/src/armature.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/armature.rs') diff --git a/client/src/armature.rs b/client/src/armature.rs index daf2725..1156071 100644 --- a/client/src/armature.rs +++ b/client/src/armature.rs @@ -16,18 +16,18 @@ */ use glam::Mat4; use std::sync::Arc; -use weareshared::resources::Armature; +use weareshared::resources::ArmaturePart; use wgpu::{Buffer, BufferDescriptor, BufferUsages, Device, Queue}; const MAX_JOINTS: usize = 128; pub struct RArmature { pub joint_mat_uniform_buffer: Arc, joint_mat: Vec, - _data: Armature, + _data: ArmaturePart, } impl RArmature { - pub fn new(device: &Device, armature: Armature) -> Self { + pub fn new(device: &Device, armature: ArmaturePart) -> Self { Self { joint_mat_uniform_buffer: Arc::new(device.create_buffer(&BufferDescriptor { label: Some("joint uniform"), -- cgit v1.2.3-70-g09d2