Skip to content

Commit

Permalink
Fixed JSON.stringify( object ).
Browse files Browse the repository at this point in the history
  • Loading branch information
tschw committed Apr 1, 2016
1 parent 6e05a92 commit aac39df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Object3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ THREE.Object3D.prototype = {

toJSON: function ( meta ) {

var isRootObject = ( meta === undefined );
var isRootObject = ( meta === undefined || meta === '' );
// when meta is an empty string, this method has been called from
// within JSON.stringify

var output = {};

Expand Down

0 comments on commit aac39df

Please # to comment.