We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c8f53c commit fc1116dCopy full SHA for fc1116d
src/tiled/objectselectionitem.cpp
@@ -202,13 +202,7 @@ void MapObjectLabel::syncWithMapObject(const MapRenderer &renderer)
202
bounds = rotateAt(pos, mObject->rotation()).mapRect(bounds);
203
204
// Center the object name on the object bounding box
205
- if (mObject->shape() == MapObject::Point) {
206
- // Use a local offset, since point objects don't scale with the view
207
- boundingRect.translate(0, -bounds.height());
208
- mTextPos.ry() -= bounds.height();
209
- } else {
210
- pos = { (bounds.left() + bounds.right()) / 2, bounds.top() };
211
- }
+ pos = { (bounds.left() + bounds.right()) / 2, bounds.top() };
212
213
if (auto mapScene = static_cast<MapScene*>(scene()))
214
pos += mapScene->absolutePositionForLayer(*mObject->objectGroup());
0 commit comments