diff --git a/src/properties/struct_property.rs b/src/properties/struct_property.rs index 1e969e9..f3b3b1f 100644 --- a/src/properties/struct_property.rs +++ b/src/properties/struct_property.rs @@ -278,6 +278,7 @@ impl PropertyTrait for StructProperty { ); cursor.write_f32::(vector.x.0)?; cursor.write_f32::(vector.y.0)?; + Ok(8) } StructPropertyValue::Vector2D(vector) => { validate!( @@ -286,6 +287,7 @@ impl PropertyTrait for StructProperty { ); cursor.write_f64::(vector.x.0)?; cursor.write_f64::(vector.y.0)?; + Ok(16) } StructPropertyValue::VectorF(vector) => { validate!(