mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 17:54:00 +02:00
store shapeType whenever it is explicitly changed
This commit is contained in:
parent
f2fc781523
commit
3cd0a70641
1 changed files with 1 additions and 5 deletions
|
@ -190,12 +190,8 @@ void EntityItemProperties::setShapeTypeFromString(const QString& shapeName) {
|
|||
buildStringToShapeTypeLookup();
|
||||
}
|
||||
auto shapeTypeItr = stringToShapeTypeLookup.find(shapeName.toLower());
|
||||
ShapeType newShapeType = SHAPE_TYPE_NONE;
|
||||
if (shapeTypeItr != stringToShapeTypeLookup.end()) {
|
||||
newShapeType = shapeTypeItr.value();
|
||||
}
|
||||
if (newShapeType != _shapeType) {
|
||||
_shapeType = newShapeType;
|
||||
_shapeType = shapeTypeItr.value();
|
||||
_shapeTypeChanged = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue