Browse Source

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

Mr.doob 11 years ago
parent
commit
6ce72bc408
1 changed files with 4 additions and 1 deletions
  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();
+};