Răsfoiți Sursa

added notices that Vector3.setEulerFromRotationMatrix/setEulerFromQuaternion have been removed. Not deprecating because the target class has changed, it isn't just a function rename.

Ben Houston 12 ani în urmă
părinte
comite
1b05529254
1 a modificat fișierele cu 12 adăugiri și 0 ștergeri
  1. 12 0
      src/math/Vector3.js

+ 12 - 0
src/math/Vector3.js

@@ -516,6 +516,18 @@ THREE.Vector3.prototype = {
 
 	},
 
+	setEulerFromRotationMatrix: function ( m, order ) {
+
+		console.error( "REMOVED: Vector3\'s setEulerFromRotationMatrix has been removed in favor of Euler.setFromRotationMatrix(), please update your code.");
+
+	},
+
+	setEulerFromQuaternion: function ( q, order ) {
+
+		console.error( "REMOVED: Vector3\'s setEulerFromQuaternion: has been removed in favor of Euler.setFromQuaternion(), please update your code.");
+		
+	},
+
 	getPositionFromMatrix: function ( m ) {
 
 		this.x = m.elements[12];