Bladeren bron

Three.Legacy: Added THREE.Vertex. See #1703.

Mr.doob 9 jaren geleden
bovenliggende
commit
da330b63fa
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 7 0
      src/Three.Legacy.js

+ 7 - 0
src/Three.Legacy.js

@@ -202,6 +202,13 @@ THREE.Face4 = function ( a, b, c, d, normal, color, materialIndex ) {
 
 
 };
 };
 
 
+THREE.Vertex = function ( x, y, z ) {
+
+	console.warn( 'THREE.Vertex has been removed. Use THREE.Vector3 instead.' );
+	return new THREE.Vector3( x, y, z );
+
+};
+
 //
 //
 
 
 Object.defineProperties( THREE.Object3D.prototype, {
 Object.defineProperties( THREE.Object3D.prototype, {