We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6494b77 commit 9e3fffaCopy full SHA for 9e3fffa
inox2d/src/params.rs
@@ -196,9 +196,12 @@ impl Param {
196
197
// deform specified by a parameter must be direct, i.e., in the form of displacements of all vertices
198
let direct_deform = {
199
- let mesh = comps
200
- .get::<Mesh>(binding.node)
201
- .expect("Deform param target must have an associated Mesh.");
+ let mesh = comps.get::<Mesh>(binding.node).unwrap_or_else(|| {
+ panic!(
+ "Deform param target must have an associated Mesh. (Binding Node ID: {:?})",
202
+ binding.node.0
203
+ )
204
+ });
205
206
let vert_len = mesh.vertices.len();
207
let mut direct_deform: Vec<Vec2> = Vec::with_capacity(vert_len);
0 commit comments