提交 cd4cbc3b 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11409 from aardgoose/matrix4-error-messages

make Matrix(x) error messages correct and consistent
......@@ -184,7 +184,7 @@ Object.assign( Matrix3.prototype, {
if ( matrix && matrix.isMatrix4 ) {
console.error( "THREE.Matrix3.getInverse no longer takes a Matrix4 argument." );
console.error( "THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument." );
}
......@@ -203,7 +203,7 @@ Object.assign( Matrix3.prototype, {
if ( det === 0 ) {
var msg = "THREE.Matrix3.getInverse(): can't invert matrix, determinant is 0";
var msg = "THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";
if ( throwOnDegenerate === true ) {
......
......@@ -154,7 +154,7 @@ Object.assign( Matrix4.prototype, {
if ( ! ( euler && euler.isEuler ) ) {
console.error( 'THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
console.error( 'THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
}
......@@ -565,7 +565,7 @@ Object.assign( Matrix4.prototype, {
if ( det === 0 ) {
var msg = "THREE.Matrix4.getInverse(): can't invert matrix, determinant is 0";
var msg = "THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0";
if ( throwOnDegenerate === true ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册