Browse Source

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

Mr.doob 11 năm trước cách đây
mục cha
commit
6ce72bc408
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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();
+};