pythreejs icon indicating copy to clipboard operation
pythreejs copied to clipboard

Running a three obj method on an indexed geometry causes the index attribute to disappear

Open sirbardo opened this issue 6 years ago • 0 comments

Here is a screenshot demonstrating a minimum reproducible bit of code that causes the problem:

image

I would like to add that the three obj method does work, but only once: the first time it's run it does effectively set the draw range, but since it "kills" the index attribute it can not be run more than once.

MORE INFO:

the index is being lost in the three.js function "syncToModel", because for some reason it thinks it's an "attribute generated by three", or something like that. I will report back with more info / a pull request if I can fix this.

sirbardo avatar Nov 05 '19 11:11 sirbardo