Closed mdegans closed 1 year ago
Occasionally, self.transformation.invert() in Mesh::draw returns a None, resulting in a crash:
self.transformation.invert()
Mesh::draw
program.use_uniform_if_required( "normalMatrix", &self.transformation.invert().unwrap().transpose(), );
Seems this is because I was animating a transform which caused scale in all dimensions to occasionally reach 0.0 (and so the determinant is 0, None is returned, and 💥boom💥).
0.0
Occasionally,
self.transformation.invert()
inMesh::draw
returns a None, resulting in a crash:Seems this is because I was animating a transform which caused scale in all dimensions to occasionally reach
0.0
(and so the determinant is 0, None is returned, and 💥boom💥).