mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:21:16 +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();
|
buildStringToShapeTypeLookup();
|
||||||
}
|
}
|
||||||
auto shapeTypeItr = stringToShapeTypeLookup.find(shapeName.toLower());
|
auto shapeTypeItr = stringToShapeTypeLookup.find(shapeName.toLower());
|
||||||
ShapeType newShapeType = SHAPE_TYPE_NONE;
|
|
||||||
if (shapeTypeItr != stringToShapeTypeLookup.end()) {
|
if (shapeTypeItr != stringToShapeTypeLookup.end()) {
|
||||||
newShapeType = shapeTypeItr.value();
|
_shapeType = shapeTypeItr.value();
|
||||||
}
|
|
||||||
if (newShapeType != _shapeType) {
|
|
||||||
_shapeType = newShapeType;
|
|
||||||
_shapeTypeChanged = true;
|
_shapeTypeChanged = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue