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

Object3D: console.error instead of console.warning for properties.

So the console shows the whole path.
上级 b93230ad
......@@ -39,7 +39,7 @@ THREE.Object3D = function () {
return position;
},
set: function ( value ) {
console.warn( 'THREE.Object3D: .position = new THREE.Vector3() pattern no longer works. Use .position.copy() instead.' );
console.error( 'THREE.Object3D: .position = new THREE.Vector3() pattern no longer works. Use .position.copy() instead.' );
position.copy( value );
}
},
......@@ -49,7 +49,7 @@ THREE.Object3D = function () {
return rotation;
},
set: function ( value ) {
console.warn( 'THREE.Object3D: .rotation = new THREE.Euler() pattern no longer works. Use .rotation.copy() instead.' );
console.error( 'THREE.Object3D: .rotation = new THREE.Euler() pattern no longer works. Use .rotation.copy() instead.' );
rotation.copy( value );
}
},
......@@ -59,7 +59,7 @@ THREE.Object3D = function () {
return quaternion;
},
set: function ( value ) {
console.warn( 'THREE.Object3D: .quaternion = new THREE.Quaternion() pattern no longer works. Use .quaternion.copy() instead.' );
console.error( 'THREE.Object3D: .quaternion = new THREE.Quaternion() pattern no longer works. Use .quaternion.copy() instead.' );
quaternion.copy( value );
}
},
......@@ -69,7 +69,7 @@ THREE.Object3D = function () {
return scale;
},
set: function ( value ) {
console.warn( 'THREE.Object3D: .scale = new THREE.Vector3() pattern no longer works. Use .scale.copy() instead.' );
console.error( 'THREE.Object3D: .scale = new THREE.Vector3() pattern no longer works. Use .scale.copy() instead.' );
scale.copy( value );
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册