Преглед изворни кода

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

Mr.doob пре 11 година
родитељ
комит
6ce72bc408
1 измењених фајлова са 4 додато и 1 уклоњено
  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();
+};