Use Ref<T> references as iterators where relevant
And const when possible.
This commit is contained in:
parent
fef27e9b5b
commit
92299989bd
18 changed files with 62 additions and 83 deletions
|
|
@ -573,7 +573,7 @@ void Viewport::_process_picking() {
|
|||
// if no mouse event exists, create a motion one. This is necessary because objects or camera may have moved.
|
||||
// while this extra event is sent, it is checked if both camera and last object and last ID did not move. If nothing changed, the event is discarded to avoid flooding with unnecessary motion events every frame
|
||||
bool has_mouse_event = false;
|
||||
for (Ref<InputEvent> m : physics_picking_events) {
|
||||
for (const Ref<InputEvent> &m : physics_picking_events) {
|
||||
if (m.is_valid()) {
|
||||
has_mouse_event = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue