AddictArts/three.js — comment on commit 3a4b8d442c0c547007bb6bccafe9e4a32f5cf898
File:  line 0
By ekitson:

Thanks for the reply! After some investigation, most of my questions are answered. It looks like baking the transforms in to the geometry directly will work for us and save on the run-time costs as you said. I wish I had seen that sooner!

The snag I was hitting with `GeometryUtils.center` was that I was trying to set the `Geometry.dynamic` flag after it had already been rendered once. It looks like I need to set it before it gets added to the `Scene` so that all the data set up by `initMeshBuffers` doesn't get deleted. Is there a nice way that I can set the dynamic flag after the `Geometry` been rendered? This is what I am doing now:

```javascript
logs.geometry.dynamic = true;
logs.__webglInit = false;
delete logs.geometry.geometryGroupsList[0].__webglVertexBuffer;
scene.__objectsAdded.push(logs);
```

This feels way too hacky.