mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-19 13:44:20 +02:00
fix default shape of zones
This commit is contained in:
parent
ad7293d4ad
commit
5dddca37ca
1 changed files with 3 additions and 2 deletions
|
@ -200,10 +200,11 @@ void ZoneEntityItem::debugDump() const {
|
|||
}
|
||||
|
||||
ShapeType ZoneEntityItem::getShapeType() const {
|
||||
// Zones are not allowed to have a SHAPE_TYPE_NONE... they are always at least a SHAPE_TYPE_BOX
|
||||
if (_shapeType == SHAPE_TYPE_COMPOUND) {
|
||||
return hasCompoundShapeURL() ? SHAPE_TYPE_COMPOUND : SHAPE_TYPE_NONE;
|
||||
return hasCompoundShapeURL() ? SHAPE_TYPE_COMPOUND : SHAPE_TYPE_BOX;
|
||||
} else {
|
||||
return _shapeType;
|
||||
return _shapeType == SHAPE_TYPE_NONE ? SHAPE_TYPE_BOX : _shapeType;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue