| 302 | } |
| 303 | |
| 304 | AABB GridMapEditor::_get_selection() const { |
| 305 | AABB ret; |
| 306 | if (selection.active) { |
| 307 | ret.position = selection.begin; |
| 308 | ret.size = selection.end - selection.begin; |
| 309 | } else { |
| 310 | ret.position.zero(); |
| 311 | ret.size.zero(); |
| 312 | } |
| 313 | return ret; |
| 314 | } |
| 315 | |
| 316 | bool GridMapEditor::_has_selection() const { |
| 317 | return node != nullptr && selection.active; |