Explorar o código

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

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
6ce72bc408
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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();
+};

粤ICP备19079148号