Răsfoiți Sursa

Editor: Minor tweaks.

Mr.doob 11 ani în urmă
părinte
comite
19513a2428
2 a modificat fișierele cu 8 adăugiri și 10 ștergeri
  1. 7 7
      editor/js/Editor.js
  2. 1 3
      editor/js/Loader.js

+ 7 - 7
editor/js/Editor.js

@@ -50,22 +50,22 @@ var Editor = function () {
 		showGridChanged: new SIGNALS.Signal()
 
 	};
-	
+
 	this.config = new Config();
 	this.storage = new Storage();
 	this.loader = new Loader( this );
 
-	this.camera = new THREE.PerspectiveCamera( 50, 1, 1, 100000 );
+	this.camera = new THREE.PerspectiveCamera( 50, 1, 0.1, 100000 );
 	this.scene = new THREE.Scene();
 	this.scene.name = 'Scene';
-	
+
 	this.sceneHelpers = new THREE.Scene();
 
 	this.object = {};
 	this.geometries = {};
 	this.materials = {};
 	this.textures = {};
-	
+
 	this.scripts = {};
 
 	this.selected = null;
@@ -84,11 +84,11 @@ Editor.prototype = {
 	},
 
 	showDialog: function ( value ) {
-	
+
 		this.signals.showDialog.dispatch( value );
-	
+
 	},
-	
+
 	//
 
 	setScene: function ( scene ) {

+ 1 - 3
editor/js/Loader.js

@@ -181,8 +181,6 @@ var Loader = function ( editor ) {
 
 					var contents = event.target.result;
 
-					console.log( contents );
-
 					var geometry = new THREE.PLYLoader().parse( contents );
 					geometry.sourceType = "ply";
 					geometry.sourceFile = file.name;
@@ -297,7 +295,7 @@ var Loader = function ( editor ) {
 
 			default:
 
-				alert( 'Unsupported file format.' );
+				alert( 'Unsupported file format (' + extension +  ').' );
 
 				break;