Implement native object models (#68)
This commit is contained in:
@@ -429,7 +429,7 @@ fn face(vertices: Vec<Vertex>, weights: Option<Vec<VertexWeight>>) -> Face {
|
||||
num_s: 0,
|
||||
num_t: 0,
|
||||
tex_coords1: None,
|
||||
texture_face: PrimitiveTextureEntryFace,
|
||||
texture_face: PrimitiveTextureEntryFace::default(),
|
||||
user_data: Object::from(""),
|
||||
vertices,
|
||||
weights,
|
||||
|
||||
@@ -1166,6 +1166,7 @@ pub(crate) fn primitive_defaults() -> Primitive {
|
||||
},
|
||||
textures: None,
|
||||
tree_species: crate::Tree::Pine1,
|
||||
unknown_extra_params: Vec::new(),
|
||||
velocity: libremetaverse_types::Vector3::zero(),
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -43,6 +43,7 @@ mod message_codec;
|
||||
mod message_decoder;
|
||||
mod network_manager;
|
||||
mod object_material;
|
||||
mod object_model;
|
||||
#[rustfmt::skip]
|
||||
pub mod packet_catalog;
|
||||
mod packet_wire;
|
||||
|
||||
3408
crates/libremetaverse/src/object_model.rs
Normal file
3408
crates/libremetaverse/src/object_model.rs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -23352,12 +23352,6 @@ pub(crate) fn new_avatar() -> Result<crate::Avatar, crate::Error> {
|
||||
visual_parameters: Vec::new(),
|
||||
})
|
||||
}
|
||||
pub(crate) fn new_texture_entry_face() -> Result<
|
||||
crate::PrimitiveTextureEntryFace,
|
||||
crate::Error,
|
||||
> {
|
||||
Ok(crate::PrimitiveTextureEntryFace)
|
||||
}
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user