MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _get_selection

Method _get_selection

modules/gridmap/editor/grid_map_editor_plugin.cpp:304–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304AABB 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
316bool GridMapEditor::_has_selection() const {
317 return node != nullptr && selection.active;

Callers 1

get_selectionMethod · 0.80

Calls 1

zeroMethod · 0.45

Tested by

no test coverage detected