fruitflybrain / neu3d

A javascript 3D visualization engine for neural data in SWC format
7 stars 8 forks source link

addJSON not resolving correctly #41

Open TK-21st opened 2 years ago

TK-21st commented 2 years ago

addJSON should only resolve when threejs objects have been rendered.

For example, in these lines, the this.loadObjCallback should return a promise. The promise of the addJSON callback should in turn depend on that promise.

The current side effect of this bug is that examples/activity.html bugs out.