fallback to SIMPLE_COMPOUND when can't do COMPOUND

This commit is contained in:
Andrew Meadows 2016-07-26 17:06:40 -07:00
parent 26f5d3cfaa
commit 3b772d2fe6

View file

@ -282,8 +282,8 @@ ShapeType ModelEntityItem::computeTrueShapeType() const {
type = SHAPE_TYPE_COMPOUND; type = SHAPE_TYPE_COMPOUND;
} }
if (type == SHAPE_TYPE_COMPOUND && !hasCompoundShapeURL()) { if (type == SHAPE_TYPE_COMPOUND && !hasCompoundShapeURL()) {
// no compoundURL set --> fall back to NONE // no compoundURL set --> fall back to SIMPLE_COMPOUND
type = SHAPE_TYPE_NONE; type = SHAPE_TYPE_SIMPLE_COMPOUND;
} }
return type; return type;
} }