diff --git a/src/core/Geometry.js b/src/core/Geometry.js index cb50529752ba5e8b15efcb924121c95ffdd7bd47..bb353f91f70ecb7415917dd931ca32e453dfa35e 100644 --- a/src/core/Geometry.js +++ b/src/core/Geometry.js @@ -1142,13 +1142,11 @@ Object.assign( Geometry.prototype, EventDispatcher.prototype, { } - data.data = {}; - - data.data.vertices = vertices; - data.data.normals = normals; - if ( colors.length > 0 ) data.data.colors = colors; - if ( uvs.length > 0 ) data.data.uvs = [ uvs ]; // temporal backward compatibility - data.data.faces = faces; + data.vertices = vertices; + data.normals = normals; + if ( colors.length > 0 ) data.colors = colors; + if ( uvs.length > 0 ) data.uvs = [ uvs ]; // temporal backward compatibility + data.faces = faces; return data;