Core: Convert Pair/KeyValue to constexpr
This commit is contained in:
parent
5e27318b6c
commit
5538850d87
8 changed files with 51 additions and 65 deletions
|
|
@ -896,7 +896,7 @@ void Viewport::_process_picking() {
|
|||
send_event = false;
|
||||
}
|
||||
}
|
||||
HashMap<Pair<ObjectID, int>, uint64_t, PairHash<ObjectID, int>>::Iterator SF = physics_2d_shape_mouseover.find(Pair(res[i].collider_id, res[i].shape));
|
||||
HashMap<Pair<ObjectID, int>, uint64_t>::Iterator SF = physics_2d_shape_mouseover.find(Pair(res[i].collider_id, res[i].shape));
|
||||
if (!SF) {
|
||||
physics_2d_shape_mouseover.insert(Pair(res[i].collider_id, res[i].shape), frame);
|
||||
co->_mouse_shape_enter(res[i].shape);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue