Hey!
I was playing around with libprocessing today and couldn't build because of a undeclared call to geometry_attribute_dead in the wasm crate. From what i understand, there's no dead attribute in the geometry crate, but i'm no Rust or Bevy expert (yet! :D)
|
geometry_attribute_dead().to_bits() |
|
#[derive(Resource)] |
|
pub struct BuiltinAttributes { |
|
pub position: Entity, |
|
pub normal: Entity, |
|
pub color: Entity, |
|
pub uv: Entity, |
|
pub rotation: Entity, |
|
pub scale: Entity, |
|
pub life: Entity, |
|
pub velocity: Entity, |
|
pub age: Entity, |
|
} |
|
impl BuiltinAttributes { |
|
pub fn by_name(&self, name: &str) -> Option<Entity> { |
|
Some(match name { |
|
"position" => self.position, |
|
"normal" => self.normal, |
|
"color" => self.color, |
|
"uv" => self.uv, |
|
"rotation" => self.rotation, |
|
"scale" => self.scale, |
|
"life" => self.life, |
|
"velocity" => self.velocity, |
|
"age" => self.age, |
|
_ => return None, |
|
}) |
|
} |
|
} |
I got it to work by commenting the whole binding like so :
/*
#[wasm_bindgen(js_name = "geometryAttributeDead")]
pub fn js_geometry_attribute_dead() -> u64 {
geometry_attribute_dead().to_bits()
}
*/
Hey!
I was playing around with libprocessing today and couldn't build because of a undeclared call to
geometry_attribute_deadin the wasm crate. From what i understand, there's nodeadattribute in the geometry crate, but i'm no Rust or Bevy expert (yet! :D)libprocessing/crates/processing_wasm/src/lib.rs
Line 2285 in f6a9c4b
libprocessing/crates/processing_render/src/geometry/attribute.rs
Lines 220 to 231 in f6a9c4b
libprocessing/crates/processing_render/src/geometry/attribute.rs
Lines 293 to 308 in f6a9c4b
I got it to work by commenting the whole binding like so :