Skip to content

Commit

Permalink
Merge remote-tracking branch 'mrdoob/dev' into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zz85 committed Dec 4, 2012
2 parents 3f234f8 + d27a1bc commit c14c0f2
Show file tree
Hide file tree
Showing 110 changed files with 44,695 additions and 38,618 deletions.
70,657 changes: 35,919 additions & 34,738 deletions build/three.js

Large diffs are not rendered by default.

819 changes: 424 additions & 395 deletions build/three.min.js

Large diffs are not rendered by default.

19 changes: 12 additions & 7 deletions editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,20 @@

if ( data.metadata.type === 'geometry' ) {

var geometry = new THREE.GeometryLoader().parse( data );
geometry.sourceType = "ascii";
geometry.sourceFile = file.name;
var loader = new THREE.JSONLoader();

var mesh = new THREE.Mesh( geometry, createDummyMaterial() );
mesh.name = filename;
loader.createModel( data, function ( geometry ) {

signals.objectAdded.dispatch( mesh );
signals.objectSelected.dispatch( mesh );
geometry.sourceType = "ascii";
geometry.sourceFile = file.name;

var mesh = new THREE.Mesh( geometry, createDummyMaterial() );
mesh.name = filename;

signals.objectAdded.dispatch( mesh );
signals.objectSelected.dispatch( mesh );

} );

} else if ( data.metadata.type === 'scene' ) {

Expand Down
2 changes: 1 addition & 1 deletion examples/css3d_sandbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
var element = document.createElement( 'div' );
element.style.width = '100px';
element.style.height = '100px';
element.style.background = new THREE.Color( Math.random() * 0xffffff ).getContextStyle();
element.style.background = new THREE.Color( Math.random() * 0xffffff ).getStyle();

var object = new THREE.CSS3DObject( element );
object.position.x = Math.random() * 200 - 100;
Expand Down
Loading

0 comments on commit c14c0f2

Please sign in to comment.