fix a geometry race condition crash

This commit is contained in:
Stephen Birarda 2014-04-18 15:10:15 -07:00
parent 21672bbdc7
commit 0a7ea17d43

View file

@ -468,8 +468,13 @@ void Model::clearShapes() {
void Model::rebuildShapes() {
clearShapes();
if (!_geometry) {
return;
}
const FBXGeometry& geometry = _geometry->getFBXGeometry();
if (geometry.joints.isEmpty()) {
return;
}