archilogic-com / 3dio-js

JavaScript toolkit for interior apps
https://3d.io
MIT License
273 stars 73 forks source link

getAframeElementsFromSceneStructure creates circular references on input #128

Open frederic-schwarz opened 6 years ago

frederic-schwarz commented 6 years ago

io3d.scene.getAframeElementsFromSceneStructure(sceneStructure) should not affect sceneStructure input, but at the moment it does by referencing the parent in each node and thus creating a circular reference

a solution: the method should deep clone the input first