|
@@ -105,7 +105,7 @@ THREE.SceneExporter2.prototype = {
|
|
|
} else if ( object instanceof THREE.SpotLight ) {
|
|
|
|
|
|
data.type = 'SpotLight';
|
|
|
- data.color = object.color.getHex();
|
|
|
+ data.color = object.color.getHex();
|
|
|
data.intensity = object.intensity;
|
|
|
data.position = object.position.toArray();
|
|
|
|
|
@@ -131,6 +131,8 @@ THREE.SceneExporter2.prototype = {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ data.userData = object.userData;
|
|
|
+
|
|
|
// parse children
|
|
|
|
|
|
if ( object.children.length > 0 ) {
|