提交 c1359c05 编写于 作者: J Jay Weeks 提交者: Mr.doob

Fix Matrix3 Matrix4 getInverse throwOnDegenerate (#9405)

* Fix Matrix3 Matrix4 getInverse throwOnDegenerate

* Update throwOnDegenerate assertion
上级 45974c95
......@@ -196,7 +196,7 @@ Matrix3.prototype = {
var msg = "THREE.Matrix3.getInverse(): can't invert matrix, determinant is 0";
if ( throwOnDegenerate || false ) {
if ( throwOnDegenerate === true ) {
throw new Error( msg );
......
......@@ -625,7 +625,7 @@ Matrix4.prototype = {
var msg = "THREE.Matrix4.getInverse(): can't invert matrix, determinant is 0";
if ( throwOnDegenerate || false ) {
if ( throwOnDegenerate === true ) {
throw new Error( msg );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册