Call updateGeometry before Model::createRenderItemSet to ensure well-defined state

This commit is contained in:
sabrina-shanman 2019-11-21 16:12:49 -08:00
parent 359248829c
commit 79d470c70e

View file

@ -981,7 +981,9 @@ bool Model::addToScene(const render::ScenePointer& scene,
render::Transaction& transaction,
render::Item::Status::Getters& statusGetters,
BlendShapeOperator modelBlendshapeOperator) {
if (!_addedToScene && isLoaded()) {
updateGeometry();
updateClusterMatrices();
if (_modelMeshRenderItems.empty()) {
createRenderItemSet();