| 418 | } |
| 419 | |
| 420 | void ItemDrop::updateCollisionPoly() { |
| 421 | RectF fallback = RectF{ -0.499, -0.499, 0.499, 0.499 }; |
| 422 | if (auto mat = as<MaterialItem>(m_item.get())) |
| 423 | m_boundBox = fallback; |
| 424 | else { |
| 425 | m_boundBox = Drawable::boundBoxAll(m_item->dropDrawables(), true); |
| 426 | m_boundBox.rangeSetIfEmpty(fallback); |
| 427 | } |
| 428 | MovementParameters parameters; |
| 429 | parameters.collisionPoly = PolyF(collisionArea()); |
| 430 | m_movementController.applyParameters(parameters); |
| 431 | } |
| 432 | |
| 433 | |
| 434 | void ItemDrop::updateTaken(bool master) { |
nothing calls this directly
no test coverage detected