From f55909a126366ff6bbfd838f1a31b4231b56d638 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sat, 10 May 2014 21:33:55 +0200 Subject: [PATCH] Object3D: console.error instead of console.warning for properties. So the console shows the whole path. --- src/core/Object3D.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Object3D.js b/src/core/Object3D.js index 1603a31b1f..2e30d1aa79 100644 --- a/src/core/Object3D.js +++ b/src/core/Object3D.js @@ -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 ); } } -- GitLab