Izzimach / react-three-legacy

React bindings to create and control a 3D scene using three.js
Other
1.52k stars 127 forks source link

Issue with creating a Line with LinePieces type #17

Closed robrkerr closed 9 years ago

robrkerr commented 9 years ago

According to the Three.js docs (http://threejs.org/docs/api/objects/Line.html) the attribute 'type' accepts the values THREE.LineStrip or THREE.LinePieces, but it is actually the attribute 'mode' which stores these (at least in the current version). However, react-three sets the 'type' attribute and so it is not currently possible to use THREE.LinePieces via react-three.

Izzimach commented 9 years ago

Looks like type hasn't been used for a while there. So instead of passing through type I should pass through mode instead, right?

Izzimach commented 9 years ago

@robrkerr do you have any code snippet I could use as an example and/or test for this?

robrkerr commented 9 years ago

@Izzimach, perfect. Thanks heaps!