cryscan / bevy-hikari

A Realtime Path Tracer for Bevy.
Other
347 stars 15 forks source link

error[E0308]: mismatched types #93

Closed diybl closed 1 year ago

diybl commented 1 year ago
error[E0308]: mismatched types --> src\mesh_material\mod.rs:242:18 242 min: self.position - self.radius, ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct glam::f32::vec3::Vec3, found struct bevy::prelude::Vec3
= note: struct `bevy::prelude::Vec3` and struct `glam::f32::vec3::Vec3` have similar names, but are actually distinct types

note: struct bevy::prelude::Vec3 is defined in crate glam

the-ssd commented 1 year ago

I got it cargo was compiling bvh 0.7.2 but should compile 0.7.1 change:

bvh = "0.7.1"

to:

bvh = "= 0.7.1"