Pārlūkot izejas kodu

Merge branch 'patch-2' of https://github.com/srifqi/three.js into dev

Mr.doob 11 gadi atpakaļ
vecāks
revīzija
6ce72bc408
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/extras/geometries/CubeGeometry.js

+ 4 - 1
src/extras/geometries/CubeGeometry.js

@@ -1,3 +1,6 @@
 // DEPRECATED
 
-THREE.CubeGeometry = THREE.BoxGeometry;
+THREE.CubeGeometry = function(){
+	console.warn( 'DEPRECATED: THREE.CubeGeometry is deprecated. Use THREE.BoxGeometry instead.' );
+	return new THREE.BoxGeometry();
+};