remove cruft and fix indentation

This commit is contained in:
Andrew Meadows 2017-03-15 16:17:59 -07:00
parent cf848d73e4
commit d3fa28d4bc
3 changed files with 30 additions and 39 deletions

View file

@ -228,15 +228,6 @@ void CauterizedModel::updateRenderItems() {
renderTransform = modelTransform.worldTransform(Transform(cState.clusterMatrices[0]));
}
data.updateTransformForCauterizedMesh(renderTransform, cState.clusterBuffer);
/*
// update the model transform and bounding box for this render item.
const Model::MeshState& state = data._model->getMeshState(data._meshIndex);
CauterizedModel* cModel = static_cast<CauterizedModel*>(data._model);
assert(data._meshIndex < cModel->_cauterizeMeshStates.size());
const Model::MeshState& cState = cModel->_cauterizeMeshStates.at(data._meshIndex);
data.updateTransformForSkinnedCauterizedMesh(modelTransform, state.clusterMatrices, cState.clusterMatrices);
*/
}
}
});

View file

@ -228,7 +228,7 @@ void Model::updateRenderItems() {
}
// lazy update of cluster matrices used for rendering.
// We need to update them here, so we can correctly update the bounding box.
// We need to update them here so we can correctly update the bounding box.
self->updateClusterMatrices();
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();